|
19 | 19 | #define BAD_PROT 0xFFFF |
20 | 20 |
|
21 | 21 | /* SMB command codes: |
| 22 | + * See MS-CIFS 2.2.2.1 |
22 | 23 | * Note some commands have minimal (wct=0,bcc=0), or uninteresting, responses |
23 | 24 | * (ie which include no useful data other than the SMB error code itself). |
24 | 25 | * This can allow us to avoid response buffer allocations and copy in some cases |
|
152 | 153 |
|
153 | 154 | /* |
154 | 155 | * SMB flag definitions |
| 156 | + * See MS-CIFS 2.2.3.1 |
155 | 157 | */ |
156 | 158 | #define SMBFLG_EXTD_LOCK 0x01 /* server supports lock-read write-unlock smb */ |
157 | 159 | #define SMBFLG_RCV_POSTED 0x02 /* obsolete */ |
|
165 | 167 |
|
166 | 168 | /* |
167 | 169 | * SMB flag2 definitions |
| 170 | + * See MS-CIFS 2.2.3.1 |
| 171 | + * MS-SMB 2.2.3.1 |
168 | 172 | */ |
169 | 173 | #define SMBFLG2_KNOWS_LONG_NAMES cpu_to_le16(1) /* can send long (non-8.3) |
170 | 174 | path names in response */ |
|
225 | 229 | /* |
226 | 230 | * File Attribute flags |
227 | 231 | */ |
228 | | -#define ATTR_READONLY 0x0001 |
229 | | -#define ATTR_HIDDEN 0x0002 |
230 | | -#define ATTR_SYSTEM 0x0004 |
231 | | -#define ATTR_VOLUME 0x0008 |
232 | | -#define ATTR_DIRECTORY 0x0010 |
233 | | -#define ATTR_ARCHIVE 0x0020 |
234 | | -#define ATTR_DEVICE 0x0040 |
235 | | -#define ATTR_NORMAL 0x0080 |
236 | | -#define ATTR_TEMPORARY 0x0100 |
237 | | -#define ATTR_SPARSE 0x0200 |
238 | | -#define ATTR_REPARSE 0x0400 |
239 | | -#define ATTR_COMPRESSED 0x0800 |
240 | | -#define ATTR_OFFLINE 0x1000 /* ie file not immediately available - |
241 | | - on offline storage */ |
242 | | -#define ATTR_NOT_CONTENT_INDEXED 0x2000 |
243 | | -#define ATTR_ENCRYPTED 0x4000 |
244 | | -#define ATTR_POSIX_SEMANTICS 0x01000000 |
245 | | -#define ATTR_BACKUP_SEMANTICS 0x02000000 |
246 | | -#define ATTR_DELETE_ON_CLOSE 0x04000000 |
247 | | -#define ATTR_SEQUENTIAL_SCAN 0x08000000 |
248 | | -#define ATTR_RANDOM_ACCESS 0x10000000 |
249 | | -#define ATTR_NO_BUFFERING 0x20000000 |
250 | | -#define ATTR_WRITE_THROUGH 0x80000000 |
| 232 | +#define ATTR_READONLY 0x0001 /* See MS-CIFS 2.2.1.2.3 */ |
| 233 | +#define ATTR_HIDDEN 0x0002 /* See MS-CIFS 2.2.1.2.3 */ |
| 234 | +#define ATTR_SYSTEM 0x0004 /* See MS-CIFS 2.2.1.2.3 */ |
| 235 | +#define ATTR_VOLUME 0x0008 |
| 236 | +#define ATTR_DIRECTORY 0x0010 /* See MS-CIFS 2.2.1.2.3 */ |
| 237 | +#define ATTR_ARCHIVE 0x0020 /* See MS-CIFS 2.2.1.2.3 */ |
| 238 | +#define ATTR_DEVICE 0x0040 |
| 239 | +#define ATTR_NORMAL 0x0080 /* See MS-CIFS 2.2.1.2.3 */ |
| 240 | +#define ATTR_TEMPORARY 0x0100 /* See MS-CIFS 2.2.1.2.3 */ |
| 241 | +#define ATTR_SPARSE 0x0200 /* See MS-SMB 2.2.1.2.1 */ |
| 242 | +#define ATTR_REPARSE_POINT 0x0400 /* See MS-SMB 2.2.1.2.1 */ |
| 243 | +#define ATTR_COMPRESSED 0x0800 /* See MS-CIFS 2.2.1.2.3 */ |
| 244 | +#define ATTR_OFFLINE 0x1000 /* See MS-SMB 2.2.1.2.1 |
| 245 | + ie file not immediately available - |
| 246 | + on offline storage */ |
| 247 | +#define ATTR_NOT_CONTENT_INDEXED 0x2000 /* See MS-SMB 2.2.1.2.1 */ |
| 248 | +#define ATTR_ENCRYPTED 0x4000 /* See MS-SMB 2.2.1.2.1 */ |
| 249 | +#define ATTR_POSIX_SEMANTICS 0x0100000 /* See MS-CIFS 2.2.1.2.3 */ |
| 250 | +#define ATTR_BACKUP_SEMANTICS 0x0200000 /* See MS-CIFS 2.2.1.2.3 */ |
| 251 | +#define ATTR_DELETE_ON_CLOSE 0x0400000 /* See MS-CIFS 2.2.1.2.3 */ |
| 252 | +#define ATTR_SEQUENTIAL_SCAN 0x0800000 /* See MS-CIFS 2.2.1.2.3 */ |
| 253 | +#define ATTR_RANDOM_ACCESS 0x1000000 /* See MS-CIFS 2.2.1.2.3 */ |
| 254 | +#define ATTR_NO_BUFFERING 0x2000000 /* See MS-CIFS 2.2.1.2.3 */ |
| 255 | +#define ATTR_WRITE_THROUGH 0x8000000 /* See MS-CIFS 2.2.1.2.3 */ |
251 | 256 |
|
252 | 257 | /* ShareAccess flags */ |
253 | 258 | #define FILE_NO_SHARE 0x00000000 |
|
0 commit comments