diff options
author | Paulo Alcantara <pc@manguebit.com> | 2024-01-21 13:28:21 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-03-10 19:33:54 -0500 |
commit | eb90e8ecb2b54ac1af51e28596e0ef7ba351476d (patch) | |
tree | 78fee2e29cbeff8bed412b850847dfc57854e5c8 /fs/smb/client/cifsglob.h | |
parent | 71f15c90e785d1de4bcd65a279e7256684c25c0d (diff) | |
download | lwn-eb90e8ecb2b54ac1af51e28596e0ef7ba351476d.tar.gz lwn-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/cifsglob.h')
-rw-r--r-- | fs/smb/client/cifsglob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index 20d3243b7449..14359cb14af4 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -153,6 +153,12 @@ enum securityEnum { Kerberos, /* Kerberos via SPNEGO */ }; +enum cifs_reparse_type { + CIFS_REPARSE_TYPE_NFS, + CIFS_REPARSE_TYPE_WSL, + CIFS_REPARSE_TYPE_DEFAULT = CIFS_REPARSE_TYPE_NFS, +}; + struct session_key { unsigned int len; char *response; |