From: Jeff Layton Date: Mon, 26 Jul 2010 14:29:58 +0000 (-0400) Subject: cifs: ignore the "mand", "nomand" and "_netdev" mount options X-Git-Tag: v2.6.36-rc1~590^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f636a34802e3913415410c6e595df2bf84851cff;p=platform%2Fkernel%2Flinux-3.10.git cifs: ignore the "mand", "nomand" and "_netdev" mount options These are all handled by the userspace mount programs, but older versions of mount.cifs also handed them off to the kernel. Ignore them. Signed-off-by: Jeff Layton Signed-off-by: Steve French --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index d91a608..85a994c 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1264,6 +1264,12 @@ cifs_parse_mount_options(char *options, const char *devname, } else if ((strnicmp(data, "nocase", 6) == 0) || (strnicmp(data, "ignorecase", 10) == 0)) { vol->nocase = 1; + } else if (strnicmp(data, "mand", 4) == 0) { + /* ignore */ + } else if (strnicmp(data, "nomand", 6) == 0) { + /* ignore */ + } else if (strnicmp(data, "_netdev", 7) == 0) { + /* ignore */ } else if (strnicmp(data, "brl", 3) == 0) { vol->nobrl = 0; } else if ((strnicmp(data, "nobrl", 5) == 0) ||