ZBC(8)
π ZBC β zbc_open_zone, but make it make sense
okay bestie, welcome to the ZBC(8) page from the System Manager's Manual β yes that whole manual, we're in it. this is the glow-up version, same facts, way better vibes. let's go π
β¨ NAME β¨
zbc_open_zone β the little tool that explicitly opens zones on a ZBC or ZAC device. that's it, that's the job, and it eats every time π
πΈ SYNOPSIS πΈ
zbc_open_zone [options] device [zone]
π¦ DESCRIPTION π¦
so zbc_open_zone is literally there to explicitly open one zone or all the zones of a ZBC or ZAC device. no cap, that's the whole personality.
the device argument has to be the pathname to the target device block device file (think /dev/sdb), or the pathname to the target device SG node file (like /dev/sg3). quick heads up tho π«Ά β on old kernels that don't have ZBC and ZAC support, only the device SG node file is gonna be available. so if you're on a crusty kernel, that's your only lane.
the zone argument tells it which zone to open. and it gets ignored completely if you use the -all option β like, it's just not invited to the party anymore π.
by default, the zone argument means a zone number, starting from 0 for the first zone of the device. but there's lore:
- if you pass the
-lbaoption, thezoneargument gets read as the start LBA of the zone you wanna explicitly open. - if you pass the
-sectoroption, thezoneargument gets read as the start sector (512B unit) of the zone to open.
π₯ OPTIONS π₯
here's the lineup, bestie. the following options can be specified:
-h,--helpβ prints a usage help message and dips. that's it, that's the whole thing β¨-vβ verbose mode, aka debugging mode when things are being weird π-sectorβ interprets thezoneargument as the start sector (512B unit) of the zone to open.-lbaβ interprets thezoneargument as the start LBA of the zone to open.-allβ ignores thezoneargument entirely and opens all zones of the device. main character energy, opens everything π
π AUTHOR π
Damien Le Moal <damien.lemoal@wdc.com> β icon, legend, the moment. π«Ά
π SEE ALSO π
blkzone(8) β go read that one too, iykyk.
β AVAILABILITY β
the zbc_open_zone utility is part of the libzbc library, which you can grab over at https://github.com/westerndigitalcorporation/libzbc. go get it bestie π§
ok so real talk before you go β this page is fromZBC(8), part of the System Manager's Manual, and it was brought to you by the fine folks keepingZBC(8)alive. read it, love it, open those zones responsibly πβ¨πΈ
β xoxo, your resident unix bestie ππ
π¦ 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