Skip to content

Commit c09ba02

Browse files
committed
SMB3.1.1: add new tree connect ShareFlags
Also update these flag names in a few places to match the simpler easier to understand names now used in the protocol documentation (see MS-SMB2 section 2.2.10) Acked-by: Bharath SM <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 943fb67 commit c09ba02

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

fs/smbfs_common/smb2pdu.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,17 +327,18 @@ struct smb2_tree_connect_req {
327327
#define SMB2_SHAREFLAG_NO_CACHING 0x00000030
328328
#define SHI1005_FLAGS_DFS 0x00000001
329329
#define SHI1005_FLAGS_DFS_ROOT 0x00000002
330-
#define SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS 0x00000100
331-
#define SHI1005_FLAGS_FORCE_SHARED_DELETE 0x00000200
332-
#define SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING 0x00000400
333-
#define SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM 0x00000800
334-
#define SHI1005_FLAGS_FORCE_LEVELII_OPLOCK 0x00001000
335-
#define SHI1005_FLAGS_ENABLE_HASH_V1 0x00002000
336-
#define SHI1005_FLAGS_ENABLE_HASH_V2 0x00004000
330+
#define SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS 0x00000100
331+
#define SMB2_SHAREFLAG_FORCE_SHARED_DELETE 0x00000200
332+
#define SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING 0x00000400
333+
#define SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM 0x00000800
334+
#define SMB2_SHAREFLAG_FORCE_LEVELII_OPLOCK 0x00001000
335+
#define SMB2_SHAREFLAG_ENABLE_HASH_V1 0x00002000
336+
#define SMB2_SHAREFLAG_ENABLE_HASH_V2 0x00004000
337337
#define SHI1005_FLAGS_ENCRYPT_DATA 0x00008000
338338
#define SMB2_SHAREFLAG_IDENTITY_REMOTING 0x00040000 /* 3.1.1 */
339339
#define SMB2_SHAREFLAG_COMPRESS_DATA 0x00100000 /* 3.1.1 */
340-
#define SHI1005_FLAGS_ALL 0x0014FF33
340+
#define SMB2_SHAREFLAG_ISOLATED_TRANSPORT 0x00200000
341+
#define SHI1005_FLAGS_ALL 0x0034FF33
341342

342343
/* Possible share capabilities */
343344
#define SMB2_SHARE_CAP_DFS cpu_to_le32(0x00000008) /* all dialects */

0 commit comments

Comments
 (0)