summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAdam Harvey <adam@adamharvey.name>2021-01-27 13:44:35 -0800
committerSteve French <stfrench@microsoft.com>2021-01-28 09:59:27 -0600
commit19d51588125fb7abe258e85b412710486a3d9219 (patch)
tree402cc7ac486a6e86d95a229447e9e617e4d92bd6 /fs
parent6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 (diff)
cifs: ignore auto and noauto options if given
In 24e0a1eff9e2, the noauto and auto options were missed when migrating to the new mount API. As a result, users with noauto in their fstab mount options are now unable to mount cifs filesystems, as they'll receive an "Unknown parameter" error. This restores the old behaviour of ignoring noauto and auto if they're given. Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api") Signed-off-by: Adam Harvey <adam@adamharvey.name> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/fs_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index 076bcadc756a..62818b142e2e 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -175,6 +175,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
fsparam_flag_no("exec", Opt_ignore),
fsparam_flag_no("dev", Opt_ignore),
fsparam_flag_no("mand", Opt_ignore),
+ fsparam_flag_no("auto", Opt_ignore),
fsparam_string("cred", Opt_ignore),
fsparam_string("credentials", Opt_ignore),
{}