ZBC(8)

πŸ“¦ version 6.2.0, in nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

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 with num buffers of IO_size bytes, resulting in an actual I/O size of num x IO_size bytes. 🧚
  • -nio num β€” limit the number of I/O executed to num. πŸ”’
  • -p num β€” expect all bytes that are read to have the value num. 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 to file. If file is "-", the data read is printed to the standard output. πŸ“
  • -ofst ofst β€” read the zone from the sector offset ofst instead 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