projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3572d28
)
cifs: ignore the "mand", "nomand" and "_netdev" mount options
author
Jeff Layton
<jlayton@redhat.com>
Mon, 26 Jul 2010 14:29:58 +0000
(10:29 -0400)
committer
Steve 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index d91a6085d55c6f4294006256564386bfa93635c0..85a994c6433da1de443817828fdaca238cdcc47d 100644
(file)
--- 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) ||