smb: client: introduce reparse mount option
authorPaulo Alcantara <pc@manguebit.com>
Sun, 21 Jan 2024 16:28:21 +0000 (13:28 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 11 Mar 2024 00:33:54 +0000 (19:33 -0500)
commiteb90e8ecb2b54ac1af51e28596e0ef7ba351476d
tree78fee2e29cbeff8bed412b850847dfc57854e5c8
parent71f15c90e785d1de4bcd65a279e7256684c25c0d
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>
fs/smb/client/cifsglob.h
fs/smb/client/connect.c
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h