ZBC(8)
okay so you're looking at ZBC(8), the System Manager's Manual page for zbc_read_zone, and bestie, it's literally all about reading sectors from zones on ZBC or ZAC devices. π The vibe is very block-device main character energy, and we're gonna keep every flag, path, and caveat intact. β¨
π NAME π
zbc_read_zone β read sectors of a zone of a ZBC or ZAC device. ate. π¦
π SYNOPSIS π
zbc_read_zone [options] device zone_number IO_size
π¦ DESCRIPTION π¦
okay so zbc_read_zone is the utility that reads sectors from a zone of a ZBC or ZAC device. By default, the target zone will be read starting from the first sector of the zone. π
For sequential zones, the default behavior is to read all sectors up to the zone write pointer position. For conventional zones, all sectors are read. periodt. not me being obsessed with zone write pointers fr fr. β¨
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. π«Ά
β¨ OPTIONS β¨
The following options can be specified. vibe check: slay. π
-h,--helpβ display a usage help message and exit. π-vβ verbose mode (for debugging problems). π-dioβ use direct IO operations. πΎ-vio numβ use vectored IO withnumbuffers ofIO_sizebytes, resulting in an actual I/O size ofnum x IO_size bytes. π§-nio numβ limit the number of I/O executed tonum. π’-p numβ expect all bytes that are read to have the valuenum. In case of a mismatch, the offset of the bytes with the incorrect value is printed. π-f fileβ write the data read from the zone tofile. Iffileis"-", the data read is printed to the standard output. π-ofst ofstβ read the zone from the sector offsetofstinstead of from the start of the zone. β
π AUTHOR π
Damien Le Moal <damien.lemoal@wdc.com> β the author, the icon, the legend. π
π SEE ALSO π
dd(1), sg_dd(8) β go give them a look, iykyk. π
π AVAILABILITY π
The zbc_read_zone utility is part of the libzbc library available from https://github.com/westerndigitalcorporation/libzbc. π«Ά
That's the ZBC(8) footer from the System Manager's Manual, bestie β the source line is the manual name and there's no extra date/version line to copy. Signing off with block-device sparkle. πβ¨
π¦ where this page comes from
- nixos 26.05: libzbc 6.2.0
- nixpkgs unstable: libzbc 6.2.0
- opensuse-leap 16.0: libzbc-tools 6.2.0-160000.2.2 Β· BSD-2-Clause AND LGPL-3.0-or-later
- opensuse-leap 16.0: libzbc-tools 6.2.0-160000.2.2 Β· BSD-2-Clause AND LGPL-3.0-or-later
- opensuse-leap 16.0: libzbc-tools 6.2.0-160000.2.2 Β· BSD-2-Clause AND LGPL-3.0-or-later
- opensuse-leap 16.0: libzbc-tools 6.2.0-160000.2.2 Β· BSD-2-Clause AND LGPL-3.0-or-later
- π the page's license: LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms