]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: allow creating special files via reparse points
authorPaulo Alcantara <pc@manguebit.com>
Sun, 26 Nov 2023 02:55:03 +0000 (23:55 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Jan 2024 21:46:05 +0000 (15:46 -0600)
commit102466f303ffcd5cff207b3c122557f73f1041e6
tree3f6c69b86dbb4343870b24ea3a289823622835ae
parent3322960ce222997b1663ffa69e691b2edfec4ac9
smb: client: allow creating special files via reparse points

Add support for creating special files (e.g. char/block devices,
sockets, fifos) via NFS reparse points on SMB2+, which are fully
supported by most SMB servers and documented in MS-FSCC.

smb2_get_reparse_inode() creates the file with a corresponding reparse
point buffer set in @iov through a single roundtrip to the server.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311260746.HOJ039BV-lkp@intel.com/
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/dir.c
fs/smb/client/file.c
fs/smb/client/inode.c
fs/smb/client/link.c
fs/smb/client/smb2glob.h
fs/smb/client/smb2inode.c
fs/smb/client/smb2ops.c
fs/smb/client/smb2proto.h
fs/smb/client/trace.h