1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00

r11755: added names for all of the SMB2 qfs info levels (they all map exactly

to equivalent SMB qfs levels)
This commit is contained in:
Andrew Tridgell
2005-11-17 04:03:31 +00:00
committed by Gerald (Jerry) Carter
parent 387ec2b17f
commit 4ce48d02aa
4 changed files with 24 additions and 15 deletions

View File

@@ -178,6 +178,7 @@ NTSTATUS smb2_getinfo_parse(TALLOC_CTX *mem_ctx,
io->all_info.write_time = smbcli_pull_nttime(blob.data, 0x10);
io->all_info.change_time = smbcli_pull_nttime(blob.data, 0x18);
io->all_info.file_attr = IVAL(blob.data, 0x20);
io->all_info.unknown1 = IVAL(blob.data, 0x24);
io->all_info.alloc_size = BVAL(blob.data, 0x28);
io->all_info.size = BVAL(blob.data, 0x30);
io->all_info.nlink = IVAL(blob.data, 0x38);

View File

@@ -191,13 +191,13 @@ struct smb2_close {
};
/* fs information levels */
#define SMB2_GETINFO_FS_01 0x0102
#define SMB2_GETINFO_FS_03 0x0302
#define SMB2_GETINFO_FS_04 0x0402
#define SMB2_GETINFO_FS_ATTRIB_INFO 0x0502
#define SMB2_GETINFO_FS_06 0x0602
#define SMB2_GETINFO_FS_07 0x0702
#define SMB2_GETINFO_FS_08 0x0802
#define SMB2_GETINFO_FS_VOLUME_INFO 0x0102
#define SMB2_GETINFO_FS_SIZE_INFO 0x0302
#define SMB2_GETINFO_FS_DEVICE_INFO 0x0402
#define SMB2_GETINFO_FS_ATTRIBUTE_INFO 0x0502
#define SMB2_GETINFO_FS_QUOTA_INFO 0x0602
#define SMB2_GETINFO_FS_FULL_SIZE_INFO 0x0702
#define SMB2_GETINFO_FS_OBJECTID_INFO 0x0802
/* class 3 levels */
#define SMB2_GETINFO_SECURITY 0x0003
@@ -295,7 +295,7 @@ union smb2_fileinfo {
NTTIME write_time;
NTTIME change_time;
uint32_t file_attr;
/* uint32_t _pad; */
uint32_t unknown1;
uint64_t alloc_size;
uint64_t size;
uint32_t nlink;