All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cifs: ignore the noauto option if it is provided
@ 2021-01-27  7:10 Adam Harvey
  2021-01-27 10:56 ` Aurélien Aptel
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Harvey @ 2021-01-27  7:10 UTC (permalink / raw)
  To: sfrench, linux-cifs; +Cc: samba-technical, Adam Harvey

In 24e0a1eff9e2, the noauto option was 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 if it's given.

Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api")
Signed-off-by: Adam Harvey <adam@adamharvey.name>
---
 fs/cifs/fs_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index 076bcadc756a..0edde5c66985 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -171,6 +171,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
 	fsparam_flag("noatime", Opt_ignore),
 	fsparam_flag("relatime", Opt_ignore),
 	fsparam_flag("_netdev", Opt_ignore),
+	fsparam_flag("noauto", Opt_ignore),
 	fsparam_flag_no("suid", Opt_ignore),
 	fsparam_flag_no("exec", Opt_ignore),
 	fsparam_flag_no("dev", Opt_ignore),
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-28  1:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-27  7:10 [PATCH] cifs: ignore the noauto option if it is provided Adam Harvey
2021-01-27 10:56 ` Aurélien Aptel
2021-01-27 20:39   ` Adam Harvey
2021-01-27 21:44     ` [PATCH] cifs: ignore auto and noauto options if given Adam Harvey
2021-01-27 23:18       ` Steve French
2021-01-27 23:25         ` ronnie sahlberg
2021-01-28  1:25       ` Steve French
     [not found]   ` <CAH2r5mtWa8JyWXHvnWKB5N-8qfGO+G_mmu5m3+QfuhxgWX14sg@mail.gmail.com>
2021-01-27 20:43     ` [PATCH] cifs: ignore the noauto option if it is provided Adam Harvey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.