libnvme(9)
π libnvme(9) β enum nvme_id_ns_dlfeat β¨
okay so this is a page from the libnvme API manual (that's the 9 in libnvme(9), bestie β section 9, kernel/API land π§), and it's all about one little enum. it's giving "small but mighty" fr fr.
πΈ NAME πΈ
enum nvme_id_ns_dlfeat β literally this field tells you all about the features that affect deallocating logical blocks for this namespace. yes queen, deallocation lore π
π¦ SYNOPSIS π¦
enum nvme_id_ns_dlfeat {
NVME_NS_DLFEAT_RB ,
NVME_NS_DLFEAT_RB_NR ,
NVME_NS_DLFEAT_RB_ALL_0S ,
NVME_NS_DLFEAT_RB_ALL_FS ,
NVME_NS_DLFEAT_WRITE_ZEROES ,
NVME_NS_DLFEAT_CRC_GUARD
};
six constants, one enum, zero notes of hesitation π
π Constants π
okay so here's the whole cast, main character energy each and every one:
NVME_NS_DLFEAT_RBβ this one is the mask you use to get the value of the read behavior. it's the bouncer at the club, like you don't see the value directly, you go through her πNVME_NS_DLFEAT_RB_NRβ read behavior is not reported. that's it, that's the whole vibe. no data, no tea, nothing to spill πNVME_NS_DLFEAT_RB_ALL_0Sβ a deallocated logical block returns all bytes cleared to0h. so basically everything comes back as zeros, squeaky clean β¨NVME_NS_DLFEAT_RB_ALL_FSβ a deallocated logical block returns all bytes set toFFh. opposite twin energy, everything comes back as ones π₯NVME_NS_DLFEAT_WRITE_ZEROESβ if this bit is set, it indicates that the controller supports the Deallocate bit in the Write Zeroes command for this namespace. so like, the controller can do the thing π«ΆNVME_NS_DLFEAT_CRC_GUARDβ if set, it indicates that the Guard field for deallocated logical blocks that contain protection information is set to the CRC for the value read from the deallocated logical block and its metadata. yes that's a whole mouthful, but every single word matters, don't skip it π§
quick reminder bestie: these flags only indicate stuff β they're reporting what the namespace/controller does, not something you go flip yourself. read them, don't rewrite them π
and that's the page!! no cap, that little enum ate and left zero crumbs π
signing off from the API Manual, libnvme(9), dated October 2026 β stay iconic, stay deallocated, mwah πππ¦
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms