Skip to content

Commit 51d92d6

Browse files
committed
smb3: Add defines for new information level, FileIdInformation
See MS-FSCC 2.4.43. Valid to be quried from most Windows servers (among others). Signed-off-by: Steve French <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]>
1 parent ab3459d commit 51d92d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fs/cifs/smb2pdu.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ struct smb3_fs_vol_info {
15191519
#define FILE_NORMALIZED_NAME_INFORMATION 48
15201520
#define FILEID_GLOBAL_TX_DIRECTORY_INFORMATION 50
15211521
#define FILE_STANDARD_LINK_INFORMATION 54
1522+
#define FILE_ID_INFORMATION 59
15221523

15231524
struct smb2_file_internal_info {
15241525
__le64 IndexNumber;
@@ -1593,6 +1594,13 @@ struct smb2_file_network_open_info {
15931594
__le32 Reserved;
15941595
} __packed; /* level 34 Query also similar returned in close rsp and open rsp */
15951596

1597+
/* See MS-FSCC 2.4.43 */
1598+
struct smb2_file_id_information {
1599+
__le64 VolumeSerialNumber;
1600+
__u64 PersistentFileId; /* opaque endianness */
1601+
__u64 VolatileFileId; /* opaque endianness */
1602+
} __packed; /* level 59 */
1603+
15961604
extern char smb2_padding[7];
15971605

15981606
/* equivalent of the contents of SMB3.1.1 POSIX open context response */

0 commit comments

Comments
 (0)