0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #ifndef __KSMBD_SMBFSCTL_H
0023 #define __KSMBD_SMBFSCTL_H
0024
0025 #define FSCTL_DFS_GET_REFERRALS 0x00060194
0026 #define FSCTL_DFS_GET_REFERRALS_EX 0x000601B0
0027 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x00090000
0028 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x00090004
0029 #define FSCTL_REQUEST_BATCH_OPLOCK 0x00090008
0030 #define FSCTL_LOCK_VOLUME 0x00090018
0031 #define FSCTL_UNLOCK_VOLUME 0x0009001C
0032 #define FSCTL_IS_PATHNAME_VALID 0x0009002C
0033 #define FSCTL_GET_COMPRESSION 0x0009003C
0034 #define FSCTL_SET_COMPRESSION 0x0009C040
0035 #define FSCTL_QUERY_FAT_BPB 0x00090058
0036
0037 #define FSCTL_FILESYSTEM_GET_STATS 0x00090060
0038 #define FSCTL_GET_NTFS_VOLUME_DATA 0x00090064
0039 #define FSCTL_GET_RETRIEVAL_POINTERS 0x00090073
0040 #define FSCTL_IS_VOLUME_DIRTY 0x00090078
0041 #define FSCTL_ALLOW_EXTENDED_DASD_IO 0x00090083
0042 #define FSCTL_REQUEST_FILTER_OPLOCK 0x0009008C
0043 #define FSCTL_FIND_FILES_BY_SID 0x0009008F
0044 #define FSCTL_SET_OBJECT_ID 0x00090098
0045 #define FSCTL_GET_OBJECT_ID 0x0009009C
0046 #define FSCTL_DELETE_OBJECT_ID 0x000900A0
0047 #define FSCTL_SET_REPARSE_POINT 0x000900A4
0048 #define FSCTL_GET_REPARSE_POINT 0x000900A8
0049 #define FSCTL_DELETE_REPARSE_POINT 0x000900AC
0050 #define FSCTL_SET_OBJECT_ID_EXTENDED 0x000900BC
0051 #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0
0052 #define FSCTL_SET_SPARSE 0x000900C4
0053 #define FSCTL_SET_ZERO_DATA 0x000980C8
0054 #define FSCTL_SET_ENCRYPTION 0x000900D7
0055 #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB
0056 #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF
0057 #define FSCTL_READ_RAW_ENCRYPTED 0x000900E3
0058 #define FSCTL_READ_FILE_USN_DATA 0x000900EB
0059 #define FSCTL_WRITE_USN_CLOSE_RECORD 0x000900EF
0060 #define FSCTL_SIS_COPYFILE 0x00090100
0061 #define FSCTL_RECALL_FILE 0x00090117
0062 #define FSCTL_QUERY_SPARING_INFO 0x00090138
0063 #define FSCTL_SET_ZERO_ON_DEALLOC 0x00090194
0064 #define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901B4
0065 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
0066 #define FSCTL_SET_DEFECT_MANAGEMENT 0x00098134
0067 #define FSCTL_DUPLICATE_EXTENTS_TO_FILE 0x00098344
0068 #define FSCTL_SIS_LINK_FILES 0x0009C104
0069 #define FSCTL_PIPE_PEEK 0x0011400C
0070 #define FSCTL_PIPE_TRANSCEIVE 0x0011C017
0071
0072 #define FSCTL_PIPE_WAIT 0x00110018
0073 #define FSCTL_REQUEST_RESUME_KEY 0x00140078
0074 #define FSCTL_LMR_GET_LINK_TRACK_INF 0x001400E8
0075 #define FSCTL_LMR_SET_LINK_TRACK_INF 0x001400EC
0076 #define FSCTL_VALIDATE_NEGOTIATE_INFO 0x00140204
0077 #define FSCTL_QUERY_NETWORK_INTERFACE_INFO 0x001401FC
0078 #define FSCTL_COPYCHUNK 0x001440F2
0079 #define FSCTL_COPYCHUNK_WRITE 0x001480F2
0080
0081 #define IO_REPARSE_TAG_MOUNT_POINT 0xA0000003
0082 #define IO_REPARSE_TAG_HSM 0xC0000004
0083 #define IO_REPARSE_TAG_SIS 0x80000007
0084
0085
0086 #define IO_REPARSE_TAG_LX_SYMLINK_LE cpu_to_le32(0xA000001D)
0087 #define IO_REPARSE_TAG_AF_UNIX_LE cpu_to_le32(0x80000023)
0088 #define IO_REPARSE_TAG_LX_FIFO_LE cpu_to_le32(0x80000024)
0089 #define IO_REPARSE_TAG_LX_CHR_LE cpu_to_le32(0x80000025)
0090 #define IO_REPARSE_TAG_LX_BLK_LE cpu_to_le32(0x80000026)
0091 #endif