libzbc
|
Device information data structure. More...
#include <zbc.h>
Data Fields | |
enum zbc_dev_type | zbd_type |
enum zbc_dev_model | zbd_model |
char | zbd_vendor_id [ZBC_DEVICE_INFO_LENGTH] |
uint32_t | zbd_flags |
uint64_t | zbd_sectors |
uint32_t | zbd_lblock_size |
uint64_t | zbd_lblocks |
uint32_t | zbd_pblock_size |
uint64_t | zbd_pblocks |
uint64_t | zbd_max_rw_sectors |
uint32_t | zbd_opt_nr_open_seq_pref |
uint32_t | zbd_opt_nr_non_seq_write_seq_pref |
uint32_t | zbd_max_nr_open_seq_req |
Device information data structure.
Provide information on a device open using the zbc_open function.
uint32_t zbc_device_info::zbd_flags |
Device flags (enum zbc_dev_flags).
uint32_t zbc_device_info::zbd_lblock_size |
Size in bytes of the device logical blocks.
uint64_t zbc_device_info::zbd_lblocks |
Total number of logical blocks of the device.
uint32_t zbc_device_info::zbd_max_nr_open_seq_req |
Maximum number of explicitly open sequential write required zones (host-managed device models only). A value of "-1" means that there is no restrictions on the number of open zones.
uint64_t zbc_device_info::zbd_max_rw_sectors |
The maximum number of 512B sectors that can be transferred with a single command to the device.
enum zbc_dev_model zbc_device_info::zbd_model |
Device model.
uint32_t zbc_device_info::zbd_opt_nr_non_seq_write_seq_pref |
Optimal maximum number of sequential write preferred zones with the ZBC_ZA_NON_SEQ zone attribute set (host-aware device models only). A value of "-1" means that the drive did not report any value.
uint32_t zbc_device_info::zbd_opt_nr_open_seq_pref |
Optimal maximum number of explicitly open sequential write preferred zones (host-aware device models only). A value of "-1" means that the drive did not report any value.
uint32_t zbc_device_info::zbd_pblock_size |
Size in bytes of the device physical blocks.
uint64_t zbc_device_info::zbd_pblocks |
Total number of physical blocks of the device.
uint64_t zbc_device_info::zbd_sectors |
Total number of 512B sectors of the device.
enum zbc_dev_type zbc_device_info::zbd_type |
Device type.
char zbc_device_info::zbd_vendor_id[ZBC_DEVICE_INFO_LENGTH] |
Device vendor, model and firmware revision string.