[PATCH][CIFS] allow creating FIFOs when "sfu" mount option specified

Steve French smfrench at gmail.com
Fri Oct 20 04:32:32 UTC 2023


mb3: fix creating FIFOs when mounting with "sfu" mount
 option

Fixes some xfstests including generic/564 and generic/157

The "sfu" mount option can be useful for creating special files (character
and block devices in particular) but could not create FIFOs. It did
recognize existing empty files with the "system" attribute flag as FIFOs
but this is too general, so to support creating FIFOs more safely use a new
tag (but the same length as those for char and block devices ie "IntxLNK"
and "IntxBLK") "LnxFIFO" to indicate that the file should be treated as a
FIFO (when mounted with the "sfu").   For some additional context note that
"sfu" followed the way that "Services for Unix" on Windows handled these
special files (at least for character and block devices and symlinks),
which is different than newer Windows which can handle special files
as reparse points (which isn't an option to many servers).

See attached.

-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb3-fix-creating-FIFOs-when-mounting-with-sfu-mount.patch
Type: text/x-patch
Size: 3264 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20231019/67e377c2/0001-smb3-fix-creating-FIFOs-when-mounting-with-sfu-mount.bin>


More information about the samba-technical mailing list