Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smb: Update comments about some reparse point tags

NFS-style reparse points are recognized only by the Windows NFS server 2012
and new. Windows 8 does not contain Windows NFS server, so these reparse
points are not used on Windows 8.

Reparse points with IO_REPARSE_TAG_AF_UNIX tag were primarily introduced for
native Win32 AF_UNIX sockets and later were re-used by also by WSL:
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
https://devblogs.microsoft.com/commandline/windowswsl-interop-with-af_unix/

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Pali Rohár and committed by
Steve French
dd0d7edb a9023656

+4 -3
+4 -3
fs/smb/common/smbfsctl.h
··· 140 140 /* Used by the DFS filter See MS-DFSC */ 141 141 #define IO_REPARSE_TAG_DFSR 0x80000012 142 142 #define IO_REPARSE_TAG_FILTER_MANAGER 0x8000000B 143 - /* See section MS-FSCC 2.1.2.4 */ 143 + /* Native SMB symlinks since Windows Vista, see MS-FSCC 2.1.2.4 */ 144 144 #define IO_REPARSE_TAG_SYMLINK 0xA000000C 145 145 #define IO_REPARSE_TAG_DEDUP 0x80000013 146 146 #define IO_REPARSE_APPXSTREAM 0xC0000014 147 - /* NFS symlinks, Win 8/SMB3 and later */ 147 + /* NFS special files used by Windows NFS server since Windows Server 2012, see MS-FSCC 2.1.2.6 */ 148 148 #define IO_REPARSE_TAG_NFS 0x80000014 149 149 /* 150 150 * AzureFileSync - see 151 151 * https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-cloud-tiering 152 152 */ 153 153 #define IO_REPARSE_TAG_AZ_FILE_SYNC 0x8000001e 154 + /* Native Win32 AF_UNIX sockets since Windows 10 April 2018 Update, used also by WSL */ 155 + #define IO_REPARSE_TAG_AF_UNIX 0x80000023 154 156 /* WSL reparse tags */ 155 157 #define IO_REPARSE_TAG_LX_SYMLINK 0xA000001D 156 - #define IO_REPARSE_TAG_AF_UNIX 0x80000023 157 158 #define IO_REPARSE_TAG_LX_FIFO 0x80000024 158 159 #define IO_REPARSE_TAG_LX_CHR 0x80000025 159 160 #define IO_REPARSE_TAG_LX_BLK 0x80000026