Skip to content

Commit e4e2787

Browse files
committed
smb3: add new defines from protocol specification
In the October updates to MS-SMB2 two additional FSCTLs were described. Add the missing defines for these, as well as fix a typo in an earlier define. Reviewed-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 5455b9e commit e4e2787

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fs/smbfs_common/smb2pdu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ struct smb2_netname_neg_context {
449449
*/
450450

451451
/* Flags */
452-
#define SMB2_ACCEPT_TRANSFORM_LEVEL_SECURITY 0x00000001
452+
#define SMB2_ACCEPT_TRANSPORT_LEVEL_SECURITY 0x00000001
453453

454454
struct smb2_transport_capabilities_context {
455455
__le16 ContextType; /* 6 */

fs/smbfs_common/smbfsctl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@
9595
#define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901B4 /* BB add struct */
9696
#define FSCTL_GET_INTEGRITY_INFORMATION 0x0009027C
9797
#define FSCTL_GET_REFS_VOLUME_DATA 0x000902D8 /* See MS-FSCC 2.3.24 */
98+
#define FSCTL_SET_INTEGRITY_INFORMATION_EXT 0x00090380
9899
#define FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT 0x000903d3
99100
#define FSCTL_GET_RETRIEVAL_POINTER_COUNT 0x0009042b
101+
#define FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT 0x00090440
100102
#define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
101103
#define FSCTL_SET_DEFECT_MANAGEMENT 0x00098134 /* BB add struct */
102104
#define FSCTL_FILE_LEVEL_TRIM 0x00098208 /* BB add struct */

0 commit comments

Comments
 (0)