ENUM BLK_ZONE_COND(9)
π NAME π
Ok so enum blk_zone_cond β straight outta the Kernel API Manual, section 9 β is literally the condition [state] of a zone in a zoned device. Bestie, it's the vibe check for zones. π¦
β¨ SYNOPSIS β¨
enum blk_zone_cond {
BLK_ZONE_COND_NOT_WP ,
BLK_ZONE_COND_EMPTY ,
BLK_ZONE_COND_IMP_OPEN ,
BLK_ZONE_COND_EXP_OPEN ,
BLK_ZONE_COND_CLOSED ,
BLK_ZONE_COND_READONLY ,
BLK_ZONE_COND_FULL ,
BLK_ZONE_COND_OFFLINE ,
BLK_ZONE_COND_ACTIVE
};
π CONSTANTS π
BLK_ZONE_COND_NOT_WPβ this zone has no write pointer, it is conventional. No write-pointer energy, just conventional. πBLK_ZONE_COND_EMPTYβ the zone is empty. Iconic empty-girl era. πBLK_ZONE_COND_IMP_OPENβ the zone is open, but not explicitly opened. Lowkey open, not like officially open.BLK_ZONE_COND_EXP_OPENβ the zones was explicitly opened by anOPEN ZONEcommand. Highkey open, with receipts.BLK_ZONE_COND_CLOSEDβ the zone was [explicitly] closed after writing. It said bye after the writing era. π¦BLK_ZONE_COND_READONLYβ the zone is read-only. Look, don't touch. β¨BLK_ZONE_COND_FULLβ the zone is marked as full, possibly by a zoneFINISH ZONEcommand. Full plate, no crumbs. πBLK_ZONE_COND_OFFLINEβ the zone is offline (sectors cannot be read/written). Absolutely not taking calls. πBLK_ZONE_COND_ACTIVEβ the zone is either implicitly open, explicitly open, or closed. Main character state that covers the whole open/closed crew. π
π¦ DESCRIPTION π¦
The Zone Condition state machine in the ZBC/ZAC standards maps the above definitions as:
ZC1: Empty | BLK_ZONE_COND_EMPTYZC2: Implicit Open | BLK_ZONE_COND_IMP_OPENZC3: Explicit Open | BLK_ZONE_COND_EXP_OPENZC4: Closed | BLK_ZONE_COND_CLOSEDZC5: Full | BLK_ZONE_COND_FULLZC6: Read Only | BLK_ZONE_COND_READONLYZC7: Offline | BLK_ZONE_COND_OFFLINE
π¨ Conditions0x5to0xCare reserved by the current ZBC/ZAC spec and should be considered invalid. Not valid, not cute, do not use, bestie. π
The condition BLK_ZONE_COND_ACTIVE is used only with cached zone reports. It is used to report any of the BLK_ZONE_COND_IMP_OPEN, BLK_ZONE_COND_EXP_OPEN and BLK_ZONE_COND_CLOSED conditions. Conversely, a regular zone report will never report a zone condition using BLK_ZONE_COND_ACTIVE and instead use the conditions BLK_ZONE_COND_IMP_OPEN, BLK_ZONE_COND_EXP_OPEN or BLK_ZONE_COND_CLOSED as reported by the device. No cap, that's the whole distinction. π
π SEE ALSO π
- Kernel file
./include/uapi/linux/blkzoned.hβenum blk_zone_type(9),enum blk_zone_report_flags(9),struct blk_zone(9),struct blk_zone_report(9),struct blk_zone_range(9).
Big sparkly sign-off from the Kernel API Manual π«Ά β source/version: ./include/uapi/linux; date: October 2026; page: enum blk_zone_cond(9). Bye bestie, go check those zones π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms