]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: make mknod() an smb_version_op
authorAurelien Aptel <aaptel@suse.com>
Thu, 14 Mar 2019 05:29:17 +0000 (00:29 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 15 Mar 2019 00:32:36 +0000 (19:32 -0500)
commit9785b90c9ad33b71b07cb5747aa03e9eed734544
tree272f6ae649a3248727277c1a2459e59040236cb4
parente0f660096a7c47f73c1ccf1e860a4ba66b0d8fa6
CIFS: make mknod() an smb_version_op

This cleanup removes cifs specific code from SMB2/SMB3 code paths
which is cleaner and easier to maintain as the code to handle
special files is improved.  Below is an example creating special files
using 'sfu' mount option over SMB3 to Windows (with this patch)
(Note that to Samba server, support for saving dos attributes
has to be enabled for the SFU mount option to work).

In the future this will also make implementation of creating
special files as reparse points easier (as Windows NFS server does
for example).

   root@smf-Thinkpad-P51:~# stat -c "%F" /mnt2/char
   character special file

   root@smf-Thinkpad-P51:~# stat -c "%F" /mnt2/block
   block special file

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
fs/cifs/cifsglob.h
fs/cifs/dir.c
fs/cifs/smb1ops.c
fs/cifs/smb2ops.c