Skip to content

Commit dd0d7ed

Browse files
palismfrench
authored andcommitted
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent a902365 commit dd0d7ed

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/smb/common/smbfsctl.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,21 @@
140140
/* Used by the DFS filter See MS-DFSC */
141141
#define IO_REPARSE_TAG_DFSR 0x80000012
142142
#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 */
144144
#define IO_REPARSE_TAG_SYMLINK 0xA000000C
145145
#define IO_REPARSE_TAG_DEDUP 0x80000013
146146
#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 */
148148
#define IO_REPARSE_TAG_NFS 0x80000014
149149
/*
150150
* AzureFileSync - see
151151
* https://docs.microsoft.com/en-us/azure/storage/files/storage-sync-cloud-tiering
152152
*/
153153
#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
154156
/* WSL reparse tags */
155157
#define IO_REPARSE_TAG_LX_SYMLINK 0xA000001D
156-
#define IO_REPARSE_TAG_AF_UNIX 0x80000023
157158
#define IO_REPARSE_TAG_LX_FIFO 0x80000024
158159
#define IO_REPARSE_TAG_LX_CHR 0x80000025
159160
#define IO_REPARSE_TAG_LX_BLK 0x80000026

0 commit comments

Comments
 (0)