diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-11-21 20:12:54 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-11-23 11:44:55 -0600 |
commit | 45e724022e2704b5a5193fd96f378822b0448e07 (patch) | |
tree | c31cb235d4ad2a38cb56025b48dd1030dcbd1030 /fs/smb/client/cifssmb.c | |
parent | 539aad7f14dab7f947e5ab81901c0b20513a50db (diff) | |
download | lwn-45e724022e2704b5a5193fd96f378822b0448e07.tar.gz lwn-45e724022e2704b5a5193fd96f378822b0448e07.zip |
smb: client: set correct file type from NFS reparse points
Handle all file types in NFS reparse points as specified in MS-FSCC
2.1.2.6 Network File System (NFS) Reparse Data Buffer.
The client is now able to set all file types based on the parsed NFS
reparse point, which used to support only symlinks. This works for
SMB1+.
Before patch:
$ mount.cifs //srv/share /mnt -o ...
$ ls -l /mnt
ls: cannot access 'block': Operation not supported
ls: cannot access 'char': Operation not supported
ls: cannot access 'fifo': Operation not supported
ls: cannot access 'sock': Operation not supported
total 1
l????????? ? ? ? ? ? block
l????????? ? ? ? ? ? char
-rwxr-xr-x 1 root root 5 Nov 18 23:22 f0
l????????? ? ? ? ? ? fifo
l--------- 1 root root 0 Nov 18 23:23 link -> f0
l????????? ? ? ? ? ? sock
After patch:
$ mount.cifs //srv/share /mnt -o ...
$ ls -l /mnt
total 1
brwxr-xr-x 1 root root 123, 123 Nov 18 00:34 block
crwxr-xr-x 1 root root 1234, 1234 Nov 18 00:33 char
-rwxr-xr-x 1 root root 5 Nov 18 23:22 f0
prwxr-xr-x 1 root root 0 Nov 18 23:23 fifo
lrwxr-xr-x 1 root root 0 Nov 18 23:23 link -> f0
srwxr-xr-x 1 root root 0 Nov 19 2023 sock
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifssmb.c')
0 files changed, 0 insertions, 0 deletions