Scroll to navigation

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

NAME

zbc_set_write_ptr - Set a zone write pointer of an emulated ZBC device

SYNOPSIS

zbc_set_write_ptr [options] device zone_number wp_sector

DESCRIPTION

zbc_set_write_ptr is used to manually change the value of a zone write pointer position of 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 target zone of this operation is specified using its number zone_number. This zone must not be a conventional zone. The write pointer value to set is specified by wp_sector as an absolute 512B sector value. If this value is -1, then the zone write condition will be changed to full and its write pointer will be invalid as per the ZBC specifications.

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_zones(8)

AVAILABILITY

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