~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/smb/common/smbfsctl.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/smb/common/smbfsctl.h (Version linux-6.12-rc7) and /fs/smb/common/smbfsctl.h (Version linux-5.15.171)


  1 /* SPDX-License-Identifier: LGPL-2.1+ */            1 
  2 /*                                                
  3  *   SMB, CIFS, SMB2 FSCTL definitions            
  4  *                                                
  5  *   Copyright (c) International Business Mach    
  6  *   Author(s): Steve French (sfrench@us.ibm.c    
  7  *                                                
  8  */                                               
  9                                                   
 10 /* IOCTL information */                           
 11 /*                                                
 12  * List of ioctl/fsctl function codes that are    
 13  * future to remote clients like cifs or SMB2/    
 14  * a slightly larger set of fsctls that NTFS l    
 15  * including the seven below that we do not ha    
 16  * Even with protocol definitions for most of     
 17  * need to do some experimentation to identify    
 18  * remotely.  Some of the following, such as t    
 19  * could be invoked from tools via a specializ    
 20  * than via the standard vfs entry points         
 21  *                                                
 22  * See MS-SMB2 Section 2.2.31 (last checked Se    
 23  * below). Additional detail on less common on    
 24  * section 2.3.                                   
 25  */                                               
 26                                                   
 27 #ifndef __SMBFSCTL_H                              
 28 #define __SMBFSCTL_H                              
 29                                                   
 30 /*                                                
 31  * FSCTL values are 32 bits and are constructe    
 32  * <device 16bits> <access 2bits> <function 12    
 33  */                                               
 34 /* Device */                                      
 35 #define FSCTL_DEVICE_DFS                 (0x00    
 36 #define FSCTL_DEVICE_FILE_SYSTEM         (0x00    
 37 #define FSCTL_DEVICE_NAMED_PIPE          (0x00    
 38 #define FSCTL_DEVICE_NETWORK_FILE_SYSTEM (0x00    
 39 #define FSCTL_DEVICE_MASK                0xfff    
 40 /* Access */                                      
 41 #define FSCTL_DEVICE_ACCESS_FILE_ANY_ACCESS       
 42 #define FSCTL_DEVICE_ACCESS_FILE_READ_ACCESS      
 43 #define FSCTL_DEVICE_ACCESS_FILE_WRITE_ACCESS     
 44 #define FSCTL_DEVICE_ACCESS_FILE_READ_WRITE_AC    
 45 #define FSCTL_DEVICE_ACCESS_MASK                  
 46 /* Function */                                    
 47 #define FSCTL_DEVICE_FUNCTION_MASK       0x000    
 48 /* Method */                                      
 49 #define FSCTL_DEVICE_METHOD_BUFFERED   0x00       
 50 #define FSCTL_DEVICE_METHOD_IN_DIRECT  0x01       
 51 #define FSCTL_DEVICE_METHOD_OUT_DIRECT 0x02       
 52 #define FSCTL_DEVICE_METHOD_NEITHER    0x03       
 53 #define FSCTL_DEVICE_METHOD_MASK       0x00000    
 54                                                   
 55                                                   
 56 #define FSCTL_DFS_GET_REFERRALS      0x0006019    
 57 #define FSCTL_DFS_GET_REFERRALS_EX   0x000601B    
 58 #define FSCTL_REQUEST_OPLOCK_LEVEL_1 0x0009000    
 59 #define FSCTL_REQUEST_OPLOCK_LEVEL_2 0x0009000    
 60 #define FSCTL_REQUEST_BATCH_OPLOCK   0x0009000    
 61 #define FSCTL_LOCK_VOLUME            0x0009001    
 62 #define FSCTL_UNLOCK_VOLUME          0x0009001    
 63 #define FSCTL_IS_PATHNAME_VALID      0x0009002    
 64 #define FSCTL_GET_COMPRESSION        0x0009003    
 65 #define FSCTL_SET_COMPRESSION        0x0009C04    
 66 #define FSCTL_QUERY_FAT_BPB          0x0009005    
 67 /* Verify the next FSCTL number, we had it as     
 68 #define FSCTL_FILESYSTEM_GET_STATS   0x0009006    
 69 #define FSCTL_GET_NTFS_VOLUME_DATA   0x0009006    
 70 #define FSCTL_GET_RETRIEVAL_POINTERS 0x0009007    
 71 #define FSCTL_IS_VOLUME_DIRTY        0x0009007    
 72 #define FSCTL_ALLOW_EXTENDED_DASD_IO 0x0009008    
 73 #define FSCTL_REQUEST_FILTER_OPLOCK  0x0009008    
 74 #define FSCTL_FIND_FILES_BY_SID      0x0009008    
 75 #define FSCTL_SET_OBJECT_ID          0x0009009    
 76 #define FSCTL_GET_OBJECT_ID          0x0009009    
 77 #define FSCTL_DELETE_OBJECT_ID       0x000900A    
 78 #define FSCTL_SET_REPARSE_POINT      0x000900A    
 79 #define FSCTL_GET_REPARSE_POINT      0x000900A    
 80 #define FSCTL_DELETE_REPARSE_POINT   0x000900A    
 81 #define FSCTL_SET_OBJECT_ID_EXTENDED 0x000900B    
 82 #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900    
 83 #define FSCTL_SET_SPARSE             0x000900C    
 84 #define FSCTL_SET_ZERO_DATA          0x000980C    
 85 #define FSCTL_SET_ENCRYPTION         0x000900D    
 86 #define FSCTL_ENCRYPTION_FSCTL_IO    0x000900D    
 87 #define FSCTL_WRITE_RAW_ENCRYPTED    0x000900D    
 88 #define FSCTL_READ_RAW_ENCRYPTED     0x000900E    
 89 #define FSCTL_READ_FILE_USN_DATA     0x000900E    
 90 #define FSCTL_WRITE_USN_CLOSE_RECORD 0x000900E    
 91 #define FSCTL_MARK_HANDLE            0x000900F    
 92 #define FSCTL_SIS_COPYFILE           0x0009010    
 93 #define FSCTL_RECALL_FILE            0x0009011    
 94 #define FSCTL_QUERY_SPARING_INFO     0x0009013    
 95 #define FSCTL_QUERY_ON_DISK_VOLUME_INFO 0x0009    
 96 #define FSCTL_SET_ZERO_ON_DEALLOC    0x0009019    
 97 #define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901    
 98 #define FSCTL_GET_INTEGRITY_INFORMATION 0x0009    
 99 #define FSCTL_QUERY_FILE_REGIONS     0x0009028    
100 #define FSCTL_GET_REFS_VOLUME_DATA   0x000902D    
101 #define FSCTL_SET_INTEGRITY_INFORMATION_EXT 0x    
102 #define FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCO    
103 #define FSCTL_GET_RETRIEVAL_POINTER_COUNT 0x00    
104 #define FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT     
105 #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940C    
106 #define FSCTL_OFFLOAD_READ      0x00094264 /*     
107 #define FSCTL_OFFLOAD_WRITE     0x00098268 /*     
108 #define FSCTL_SET_DEFECT_MANAGEMENT  0x0009813    
109 #define FSCTL_FILE_LEVEL_TRIM        0x0009820    
110 #define FSCTL_DUPLICATE_EXTENTS_TO_FILE 0x0009    
111 #define FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX 0x0    
112 #define FSCTL_SIS_LINK_FILES         0x0009C10    
113 #define FSCTL_SET_INTEGRITY_INFORMATION 0x0009    
114 #define FSCTL_PIPE_PEEK              0x0011400    
115 #define FSCTL_PIPE_TRANSCEIVE        0x0011C01    
116 /* strange that the number for this op is not     
117 #define FSCTL_PIPE_WAIT              0x0011001    
118 /* Enumerate previous versions of a file */       
119 #define FSCTL_SRV_ENUMERATE_SNAPSHOTS 0x001440    
120 /* Retrieve an opaque file reference for serve    
121 #define FSCTL_SRV_REQUEST_RESUME_KEY 0x0014007    
122 #define FSCTL_LMR_REQUEST_RESILIENCY 0x001401D    
123 #define FSCTL_LMR_GET_LINK_TRACK_INF 0x001400E    
124 #define FSCTL_LMR_SET_LINK_TRACK_INF 0x001400E    
125 #define FSCTL_VALIDATE_NEGOTIATE_INFO 0x001402    
126 /* Perform server-side data movement */           
127 #define FSCTL_SRV_COPYCHUNK 0x001440F2            
128 #define FSCTL_SRV_COPYCHUNK_WRITE 0x001480F2      
129 #define FSCTL_QUERY_NETWORK_INTERFACE_INFO 0x0    
130 #define FSCTL_SRV_READ_HASH          0x001441B    
131                                                   
132 /* See FSCC 2.1.2.5 */                            
133 #define IO_REPARSE_TAG_MOUNT_POINT   0xA000000    
134 #define IO_REPARSE_TAG_HSM           0xC000000    
135 #define IO_REPARSE_TAG_SIS           0x8000000    
136 #define IO_REPARSE_TAG_HSM2          0x8000000    
137 #define IO_REPARSE_TAG_DRIVER_EXTENDER 0x80000    
138 /* Used by the DFS filter. See MS-DFSC */         
139 #define IO_REPARSE_TAG_DFS           0x8000000    
140 /* Used by the DFS filter See MS-DFSC */          
141 #define IO_REPARSE_TAG_DFSR          0x8000001    
142 #define IO_REPARSE_TAG_FILTER_MANAGER 0x800000    
143 /* Native SMB symlinks since Windows Vista, se    
144 #define IO_REPARSE_TAG_SYMLINK       0xA000000    
145 #define IO_REPARSE_TAG_DEDUP         0x8000001    
146 #define IO_REPARSE_APPXSTREAM        0xC000001    
147 /* NFS special files used by Windows NFS serve    
148 #define IO_REPARSE_TAG_NFS           0x8000001    
149 /*                                                
150  * AzureFileSync - see                            
151  * https://docs.microsoft.com/en-us/azure/stor    
152  */                                               
153 #define IO_REPARSE_TAG_AZ_FILE_SYNC  0x8000001    
154 /* Native Win32 AF_UNIX sockets since Windows     
155 #define IO_REPARSE_TAG_AF_UNIX       0x8000002    
156 /* WSL reparse tags */                            
157 #define IO_REPARSE_TAG_LX_SYMLINK    0xA000001    
158 #define IO_REPARSE_TAG_LX_FIFO       0x8000002    
159 #define IO_REPARSE_TAG_LX_CHR        0x8000002    
160 #define IO_REPARSE_TAG_LX_BLK        0x8000002    
161                                                   
162 /* fsctl flags */                                 
163 /* If Flags is set to this value, the request     
164 #define SMB2_0_IOCTL_IS_FSCTL           0x0000    
165 #endif /* __SMBFSCTL_H */                         
166                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php