diff options
author | David Disseldorp <ddiss@samba.org> | 2015-03-13 00:46:21 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-18 18:57:20 +0100 |
commit | 664dca2b44c96a6ef1fd5fb920adbf274a3a6c01 (patch) | |
tree | 7c59e9f6589c0383f93da7282156ded1311daf98 /source4/client | |
parent | ba9fd54bdf32009f725006660bb81965885501b9 (diff) | |
download | samba-664dca2b44c96a6ef1fd5fb920adbf274a3a6c01.tar.gz |
s4/client: add FS_SECTOR_SIZE_INFORMATION query support
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/client.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index 2779824f2ab..a069443d0cf 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -1620,6 +1620,7 @@ fsinfo_level_t fsinfo_levels[] = { {"quota-information", RAW_QFS_QUOTA_INFORMATION}, {"fullsize-information", RAW_QFS_FULL_SIZE_INFORMATION}, {"objectid", RAW_QFS_OBJECTID_INFORMATION}, + {"sector-size-info", RAW_QFS_SECTOR_SIZE_INFORMATION}, {NULL, RAW_QFS_GENERIC} }; @@ -1763,6 +1764,22 @@ static int cmd_fsinfo(struct smbclient_context *ctx, const char **args) (unsigned long long) fsinfo.objectid_information.out.unknown[4], (unsigned long long) fsinfo.objectid_information.out.unknown[5] ); break; + case RAW_QFS_SECTOR_SIZE_INFORMATION: + d_printf("\tlogical_bytes_per_sector: %u\n", + (unsigned)fsinfo.sector_size_info.out.logical_bytes_per_sector); + d_printf("\tphys_bytes_per_sector_atomic: %u\n", + (unsigned)fsinfo.sector_size_info.out.phys_bytes_per_sector_atomic); + d_printf("\tphys_bytes_per_sector_perf: %u\n", + (unsigned)fsinfo.sector_size_info.out.phys_bytes_per_sector_perf); + d_printf("\tfs_effective_phys_bytes_per_sector_atomic: %u\n", + (unsigned)fsinfo.sector_size_info.out.fs_effective_phys_bytes_per_sector_atomic); + d_printf("\tflags: 0x%x\n", + (unsigned)fsinfo.sector_size_info.out.flags); + d_printf("\tbyte_off_sector_align: %u\n", + (unsigned)fsinfo.sector_size_info.out.byte_off_sector_align); + d_printf("\tbyte_off_partition_align: %u\n", + (unsigned)fsinfo.sector_size_info.out.byte_off_partition_align); + break; case RAW_QFS_GENERIC: d_printf("\twrong level returned\n"); break; |