libnvme(2)
π NAME π
okay so bestie, welcome to libnvme β this one's all about enum nvme_lbart, aka the LBA Range Type - Data Structure Entry. it's giving "which chunks of my drive are for what" energy and honestly? iconic. π
this is page 2 of the API Manual, so buckle up, we're in the library, not the command line π«Ά
β¨ SYNOPSIS β¨
no cap, here's the whole thing, verbatim, every constant in order:
enum nvme_lbart {
NVME_LBART_TYPE_GP ,
NVME_LBART_TYPE_FS ,
NVME_LBART_TYPE_RAID ,
NVME_LBART_TYPE_CACHE ,
NVME_LBART_TYPE_SWAP ,
NVME_LBART_ATTRIB_TEMP ,
NVME_LBART_ATTRIB_HIDE
};
that's the vibe. seven little members, all living together in one enum π
πΈ Constants πΈ
okay so each one of these is a member of the enum above, and each one comes with its own lil description. no skipping, we're doing all seven π¦
NVME_LBART_TYPE_GPβ General Purpose. the default girlie, does a bit of everything π«NVME_LBART_TYPE_FSβ Filesystem. this range is where your actual files live πNVME_LBART_TYPE_RAIDβ RAID. raid business happening in this range, periodt π₯NVME_LBART_TYPE_CACHEβ Cache. it's the fast lil stash, holding things so they're ready when you need them β¨NVME_LBART_TYPE_SWAPβ Page / swap file. yes bestie, paging and swap can call this range home πNVME_LBART_ATTRIB_TEMPβ Temp. temporary. it's giving "not staying long" πNVME_LBART_ATTRIB_HIDEβ Hidden. hidden from view, sneaky but make it classy π
heads up: two of these are attributes (NVME_LBART_ATTRIB_TEMPandNVME_LBART_ATTRIB_HIDE) while the other five are types β that's literally how the original labels them, so we're keeping it exactly like that, no merging, no renaming, fr fr π
okay that's the whole page bestie!! no notes, we covered every single constant and every single description, nothing left behind π
this lil gem came out of the enum nvme_lbart corner of libnvme(2), dated July 2026. go forth, tag your LBA ranges, and slay π
β¨π
π¦ 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