Skip to content

Commit

Permalink
smb3: add new defines from protocol specification
Browse files Browse the repository at this point in the history
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 <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
Steve French committed Jan 18, 2022
1 parent 5455b9e commit e4e2787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fs/smbfs_common/smb2pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ struct smb2_netname_neg_context {
*/

/* Flags */
#define SMB2_ACCEPT_TRANSFORM_LEVEL_SECURITY 0x00000001
#define SMB2_ACCEPT_TRANSPORT_LEVEL_SECURITY 0x00000001

struct smb2_transport_capabilities_context {
__le16 ContextType; /* 6 */
Expand Down
2 changes: 2 additions & 0 deletions fs/smbfs_common/smbfsctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@
#define FSCTL_SET_SHORT_NAME_BEHAVIOR 0x000901B4 /* BB add struct */
#define FSCTL_GET_INTEGRITY_INFORMATION 0x0009027C
#define FSCTL_GET_REFS_VOLUME_DATA 0x000902D8 /* See MS-FSCC 2.3.24 */
#define FSCTL_SET_INTEGRITY_INFORMATION_EXT 0x00090380
#define FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT 0x000903d3
#define FSCTL_GET_RETRIEVAL_POINTER_COUNT 0x0009042b
#define FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT 0x00090440
#define FSCTL_QUERY_ALLOCATED_RANGES 0x000940CF
#define FSCTL_SET_DEFECT_MANAGEMENT 0x00098134 /* BB add struct */
#define FSCTL_FILE_LEVEL_TRIM 0x00098208 /* BB add struct */
Expand Down

0 comments on commit e4e2787

Please sign in to comment.