Re: [PATCH 1/3] cifs: allow fsc mount option only if CONFIG_CIFS_FSCACHE is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/27/2010 09:21 AM, Steve French wrote:
> 
> 
> On Fri, Nov 26, 2010 at 9:50 PM, Steve French <smfrench@xxxxxxxxx
> <mailto:smfrench@xxxxxxxxx>> wrote:
> 
>     As an alternative - if fsc is stable and no defects and doesn't
>     increase the code size appreciably ... what are the drawbacks of
>     turning it on unconditionally?
> 
> 
> ie always configure it, we still only enable it on a mount when fsc is
> specified on mount
> ï

I'm not aware of any open issues w.r.t cifs FS-Cache (except the
problems this patchset addresses) but I'm not sure how much testing it
has undergone really (except for me running all my tests with fsc on for
sometime and a few openSUSE users). The code size is not really much of
a problem.

The strict cache patches accounting for fscache might also provide more
testing ground. So, I think keeping it as non-default atleast for one
more release would be good before we make it as a config default.

Thanks,

>     On Wed, Nov 24, 2010 at 6:19 AM, Suresh Jayaraman
>     <sjayaraman@xxxxxxx <mailto:sjayaraman@xxxxxxx>> wrote:
> 
>         Currently, it is possible to specify 'fsc' mount option even if
>         CONFIG_CIFS_FSCACHE has not been set. The option is being
>         ignored silently
>         while the user fscache functionality to work. Fix this by
>         raising error when
>         the CONFIG option is not set.
> 
> 
>         Reported-by: Jeff Layton <jlayton@xxxxxxxxxx
>         <mailto:jlayton@xxxxxxxxxx>>
>         Signed-off-by: Suresh Jayaraman <sjayaraman@xxxxxxx
>         <mailto:sjayaraman@xxxxxxx>>
>         ---
>         ïfs/cifs/connect.c | ï ï5 +++++
>         ï1 files changed, 5 insertions(+), 0 deletions(-)
> 
>         diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
>         index 251a17c..32fa4d9 100644
>         --- a/fs/cifs/connect.c
>         +++ b/fs/cifs/connect.c
>         @@ -1352,6 +1352,11 @@ cifs_parse_mount_options(char *options,
>         const char *devname,
>         ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï"supported. Instead set "
>         ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï"/proc/fs/cifs/LookupCacheEnabled
>         to 0\n");
>         ï ï ï ï ï ï ï ï} else if (strnicmp(data, "fsc", 3) == 0) {
>         +#ifndef CONFIG_CIFS_FSCACHE
>         + ï ï ï ï ï ï ï ï ï ï ï cERROR(1, "FS-Cache support needs
>         CONFIG_CIFS_FSCACHE"
>         + ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï "kernel config option set");
>         + ï ï ï ï ï ï ï ï ï ï ï return 1;
>         +#endif
>         ï ï ï ï ï ï ï ï ï ï ï ïvol->fsc = true;
>         ï ï ï ï ï ï ï ï} else if (strnicmp(data, "mfsymlinks", 10) == 0) {
>         ï ï ï ï ï ï ï ï ï ï ï ïvol->mfsymlinks = true;
> 
> 
> 
> 
>     -- 
>     Thanks,
> 
>     Steve
> 
> 
> 
> 
> -- 
> Thanks,
> 
> Steve


-- 
Suresh Jayaraman
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux