[PATCH][WIP] query smb3 reparse tags for special files

Steve French smfrench at gmail.com
Thu Oct 22 09:20:10 UTC 2020


WSL defines special files with various reparse tags

smbfsctl.h:#define IO_REPARSE_TAG_LX_SYMLINK    0xA000001D
smbfsctl.h:#define IO_REPARSE_TAG_LX_FIFO            0x80000024
smbfsctl.h:#define IO_REPARSE_TAG_LX_CHR             0x80000025
smbfsctl.h:#define IO_REPARSE_TAG_LX_BLK             0x80000026

These also make sense for us to use more broadly because it simplifies readdir

but ... my first attempt at querying this using infolevel 33
FileReparsePointInformation (see MS-FSCC section 2.4.35) failed ...
with Windows 10 returning STATUS_NOT_SUPPORTED when querying various
reparse points (created by WSL indirectly) including fifos, symlinks
and char devices.

I can switch approaches and try to do the smb3 fsctl to query reparse
info instead but was hoping that query info would work.  Any idea if
there is another info level that would allow me to query the tag?

In any case, here is the WIP first stage of the patch - I have to add
a second patch to add the fsctl query




-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: work-in-progress-query-wsl-reparse-tags.patch
Type: text/x-patch
Size: 5717 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20201022/01613956/work-in-progress-query-wsl-reparse-tags.bin>


More information about the samba-technical mailing list