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 _13 is 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