aboutsummaryrefslogtreecommitdiff
path: root/fs/smb/client/connect.c
diff options
context:
space:
mode:
authorGravatar Paulo Alcantara <pc@manguebit.com> 2024-01-21 13:28:21 -0300
committerGravatar Steve French <stfrench@microsoft.com> 2024-03-10 19:33:54 -0500
commiteb90e8ecb2b54ac1af51e28596e0ef7ba351476d (patch)
tree78fee2e29cbeff8bed412b850847dfc57854e5c8 /fs/smb/client/connect.c
parentsmb: client: retry compound request without reusing lease (diff)
downloadlinux-eb90e8ecb2b54ac1af51e28596e0ef7ba351476d.tar.gz
linux-eb90e8ecb2b54ac1af51e28596e0ef7ba351476d.tar.bz2
linux-eb90e8ecb2b54ac1af51e28596e0ef7ba351476d.zip
smb: client: introduce reparse mount option
Allow the user to create special files and symlinks by choosing between WSL and NFS reparse points via 'reparse={nfs,wsl}' mount options. If unset or 'reparse=default', the client will default to creating them via NFS reparse points. Creating WSL reparse points isn't supported yet, so simply return error when attempting to mount with 'reparse=wsl' for now. Signed-off-by: Paulo Alcantara <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/connect.c')
-rw-r--r--fs/smb/client/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
index ac9595504f4b..5d82921d63d1 100644
--- a/fs/smb/client/connect.c
+++ b/fs/smb/client/connect.c
@@ -2803,6 +2803,8 @@ compare_mount_options(struct super_block *sb, struct cifs_mnt_data *mnt_data)
return 0;
if (old->ctx->closetimeo != new->ctx->closetimeo)
return 0;
+ if (old->ctx->reparse_type != new->ctx->reparse_type)
+ return 0;
return 1;
}