Skip to content

Commit 19d5158

Browse files
LawnGnomesmfrench
authored andcommitted
cifs: ignore auto and noauto options if given
In 24e0a1e, 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: 24e0a1e ("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>
1 parent 6ee1d74 commit 19d5158

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/cifs/fs_context.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
175175
fsparam_flag_no("exec", Opt_ignore),
176176
fsparam_flag_no("dev", Opt_ignore),
177177
fsparam_flag_no("mand", Opt_ignore),
178+
fsparam_flag_no("auto", Opt_ignore),
178179
fsparam_string("cred", Opt_ignore),
179180
fsparam_string("credentials", Opt_ignore),
180181
{}

0 commit comments

Comments
 (0)