libnvme(2)
β¨ NAME β¨
enum nvme_id_ns_rescap β bestie, this field literally tells you the reservation capabilities of the namespace. That's it, that's the whole vibe. π
Ngl this whole thing lives in libnvme, section 2 of the API manual β so if you came here looking for a command to type, you're in the API girlie part of town, not the CLI one. π«Ά
πΈ SYNOPSIS πΈ
enum nvme_id_ns_rescap {
NVME_NS_RESCAP_PTPL ,
NVME_NS_RESCAP_WE ,
NVME_NS_RESCAP_EA ,
NVME_NS_RESCAP_WERO ,
NVME_NS_RESCAP_EARO ,
NVME_NS_RESCAP_WEAR ,
NVME_NS_RESCAP_EAAR ,
NVME_NS_RESCAP_IEK_13
};
Ok so it's an enum, it's sitting pretty inside the namespace identify data, and every single one of these constants is a little flag. Set = the namespace can do the thing. Not set = it cannot. That's the whole tea. ββ¨
π Constants π
So each one of these is, like, a "if set, indicates thatβ¦" situation. Say it with me: if set! If it's not set, the namespace does NOT support it, periodt. π
NVME_NS_RESCAP_PTPLβ if this one's set, the namespace supports the Persist Through Power Loss capability. Power loss? Never heard of her. πNVME_NS_RESCAP_WEβ if set, the namespace supports the Write Exclusive reservation type.NVME_NS_RESCAP_EAβ if set, the namespace supports the Exclusive Access reservation type.NVME_NS_RESCAP_WEROβ if set, the namespace supports the Write Exclusive - Registrants Only reservation type. The "Registrants Only" girlies stay winning. π₯³NVME_NS_RESCAP_EAROβ if set, the namespace supports the Exclusive Access - Registrants Only reservation type.NVME_NS_RESCAP_WEARβ if set, the namespace supports the Write Exclusive - All Registrants reservation type.NVME_NS_RESCAP_EAARβ if set, the namespace supports the Exclusive Access - All Registrants reservation type.NVME_NS_RESCAP_IEK_13β if set, this means Ignore Existing Key is used as defined in revision 1.3 or later of this specification. Yes bestie, the_13is a little breadcrumb about which revision, and it matters. π
lowkey important: every single one of these constants is conditional. Read the bit, check whether it's set, and only then go believing the namespace can do the reservation type. Don't be out here assuming, it's giving chaos. π
And that's the page, fr fr. This little gem is enum nvme_id_ns_rescap from libnvme(2), dated July 2026 β so go forth, check your reservation capability bits, and slay. πβ¨π¦ Go off, bestie. π
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms