]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
cifs: ignore the "mand", "nomand" and "_netdev" mount options
authorJeff Layton <jlayton@redhat.com>
Mon, 26 Jul 2010 14:29:58 +0000 (10:29 -0400)
committerSteve French <sfrench@us.ibm.com>
Mon, 2 Aug 2010 12:40:40 +0000 (12:40 +0000)
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 <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c

index d91a6085d55c6f4294006256564386bfa93635c0..85a994c6433da1de443817828fdaca238cdcc47d 100644 (file)
@@ -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) ||