Scroll to navigation

ZBC(8) System Manager's Manual ZBC(8)

NAME

zbc_set_zones - Initialize a file or device for ZBC emulation

SYNOPSIS

zbc_set_zones [options] device command command_arguments zbc_set_zones [options] file command command_arguments

DESCRIPTION

zbc_set_zones is used to initialize a regular file or a regular block device to use it as an emulated ZBC device.

The device argument must be the pathname to a regular block device file (e.g., /dev/sdb), or to a regular file that is not empty. The size of the file is used to determine the capacity of the emulated device.

The command and command_arguments can have one of the following form.

Initialize the emulated device by specifying the total capacity to use for conventional zones and the size of zones. The argument cnv_zone_size specifies the total capacity of conventional zones in MiB. The argument zone_size specifies the size of all zones in MiB.
Initialize the emulated device by specifying the capacity ratio used for conventional zones and the size of zones. The argument cnv_zone_size_ratio specifies the percentage of the total capacity to use for conventional zones. The argument zone_size specifies the size of all zones in MiB.


If a regular file is used, the total number of zones is automatically determined from the size of the file. In the case of a regular block device, the device capacity is used to calculate the total number of zones that will be emulated.

OPTIONS

The following options can be specified.

Display a usage help message and exit.
Verbose mode (for debugging problems).

AUTHOR

Damien Le Moal <damien.lemoal@wdc.com>

SEE ALSO

zbc_set_write_ptr(8)

AVAILABILITY

The zbc_set_zones utility is part of the libzbc library available from
https://github.com/westerndigitalcorporation/libzbc.