Scroll to navigation

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

NAME

zbc_close_zone - Close zones of a ZBC or ZAC device

SYNOPSIS

zbc_close_zone [options] device [zone]

DESCRIPTION

zbc_close_zone is used to close implicitly open or explicitly open 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 closed. 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 close. If the option -sector is specified, then the zone argument is interpreted as the start sector (512B unit) of the zone to close.

OPTIONS

The following options can be specified.

Display a usage help message and exit.
Verbose mode (for debugging problems).
Interpret the zone argument as the start sector (512B unit) of the zone to close.
Interpret the zone argument as the start LBA of the zone to close.
Ignore the zone argument and close all open zones of the device.

AUTHOR

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

SEE ALSO

blkzone(8)

AVAILABILITY

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