Skip to content

Commit c9b8cd6

Browse files
committed
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: 24e0a1e ("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>
1 parent 19d5158 commit c9b8cd6

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
@@ -178,6 +178,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {
178178
fsparam_flag_no("auto", Opt_ignore),
179179
fsparam_string("cred", Opt_ignore),
180180
fsparam_string("credentials", Opt_ignore),
181+
fsparam_string("prefixpath", Opt_ignore),
181182
{}
182183
};
183184

0 commit comments

Comments
 (0)