table of contents
ZBC(8) | System Manager's Manual | ZBC(8) |
NAME¶
zbc_reset_zone - Reset zones of a ZBC or ZAC device
SYNOPSIS¶
zbc_reset_zone [options] device [zone]
DESCRIPTION¶
zbc_reset_zone is used to reset the write pointer position of one or all zones of a ZBC or ZAC device.
The device argument must be the pathname to the target device block device file (e.g., /dev/sdb), or to the target device SG node file (e.g., /dev/sg3). On old kernels lacking ZBC and ZAC support, only the device SG node file will be available.
The zone argument specifies the zone to be reset. This argument is ignored if the -all option is used. By default, the zone argument specifies a zone number, starting from 0 for the first zone of the device. If the option -lba is specified, the zone argument is interpreted as the start LBA of the zone to reset. If the option -sector is specified, then the zone argument is interpreted as the start sector (512B unit) of the zone to reset.
OPTIONS¶
The following options can be specified.
- -h, --help
- Display a usage help message and exit.
- -v
- Verbose mode (for debugging problems).
- -sector
- Interpret the zone argument as the start sector (512B unit) of the zone to reset.
- -lba
- Interpret the zone argument as the start LBA of the zone to reset.
- -all
- Ignore the zone argument and reset all zones of the device.
AUTHOR¶
Damien Le Moal <damien.lemoal@wdc.com>
SEE ALSO¶
AVAILABILITY¶
The zbc_reset_zone utility is part of the libzbc library available from https://github.com/westerndigitalcorporation/libzbc.