summaryrefslogtreecommitdiff
path: root/fs/cifs/fs_context.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2021-01-28 20:20:22 +0300
committerSteve French <stfrench@microsoft.com>2021-01-28 20:20:22 +0300
commitc9b8cd6a39c48b2827c0925b648b221b5f8ef25d (patch)
treed5bac297d71a73e2b22f123885bcfaf417a7127a /fs/cifs/fs_context.c
parent19d51588125fb7abe258e85b412710486a3d9219 (diff)
downloadlinux-c9b8cd6a39c48b2827c0925b648b221b5f8ef25d.tar.xz
cifs: fix mounts to subdirectories of target
The "prefixpath" mount option needs to be ignored which was missed in the recent conversion to the new mount API (prefixpath would be set by the mount helper if mounting a subdirectory of the root of a share e.g. //server/share/subdir) Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api") Suggested-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs/fs_context.c')
-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 62818b142e2e..818c413db82d 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -178,6 +178,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
fsparam_flag_no("auto", Opt_ignore),
fsparam_string("cred", Opt_ignore),
fsparam_string("credentials", Opt_ignore),
+ fsparam_string("prefixpath", Opt_ignore),
{}
};