|
1 |
| -/* SPDX-License-Identifier: LGPL-2.1 */ |
| 1 | +/* SPDX-License-Identifier: LGPL-2.1+ */ |
2 | 2 | /*
|
3 | 3 | * fs/cifs/smbfsctl.h: SMB, CIFS, SMB2 FSCTL definitions
|
4 | 4 | *
|
|
19 | 19 | * could be invoked from tools via a specialized hook into the VFS rather
|
20 | 20 | * than via the standard vfs entry points
|
21 | 21 | *
|
22 |
| - * See MS-SMB2 Section 2.2.31 (last checked June 2013, all of that list are |
| 22 | + * See MS-SMB2 Section 2.2.31 (last checked September 2021, all of that list are |
23 | 23 | * below). Additional detail on less common ones can be found in MS-FSCC
|
24 | 24 | * section 2.3.
|
25 | 25 | */
|
26 | 26 |
|
| 27 | +#ifndef __SMBFSCTL_H |
| 28 | +#define __SMBFSCTL_H |
| 29 | + |
27 | 30 | /*
|
28 | 31 | * FSCTL values are 32 bits and are constructed as
|
29 | 32 | * <device 16bits> <access 2bits> <function 12bits> <method 2bits>
|
|
91 | 94 | #define FSCTL_SET_ZERO_ON_DEALLOC 0x00090194 /* BB add struct */
|
92 | 95 | #define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901B4 /* BB add struct */
|
93 | 96 | #define FSCTL_GET_INTEGRITY_INFORMATION 0x0009027C
|
| 97 | +#define FSCTL_GET_REFS_VOLUME_DATA 0x000902D8 /* See MS-FSCC 2.3.24 */ |
94 | 98 | #define FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT 0x000903d3
|
95 | 99 | #define FSCTL_GET_RETRIEVAL_POINTER_COUNT 0x0009042b
|
96 | 100 | #define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
|
|
146 | 150 | #define IO_REPARSE_TAG_LX_CHR 0x80000025
|
147 | 151 | #define IO_REPARSE_TAG_LX_BLK 0x80000026
|
148 | 152 |
|
| 153 | +#define IO_REPARSE_TAG_LX_SYMLINK_LE cpu_to_le32(0xA000001D) |
| 154 | +#define IO_REPARSE_TAG_AF_UNIX_LE cpu_to_le32(0x80000023) |
| 155 | +#define IO_REPARSE_TAG_LX_FIFO_LE cpu_to_le32(0x80000024) |
| 156 | +#define IO_REPARSE_TAG_LX_CHR_LE cpu_to_le32(0x80000025) |
| 157 | +#define IO_REPARSE_TAG_LX_BLK_LE cpu_to_le32(0x80000026) |
| 158 | + |
149 | 159 | /* fsctl flags */
|
150 | 160 | /* If Flags is set to this value, the request is an FSCTL not ioctl request */
|
151 | 161 | #define SMB2_0_IOCTL_IS_FSCTL 0x00000001
|
152 |
| - |
| 162 | +#endif /* __SMBFSCTL_H */ |
0 commit comments