lsm_fs_total_space_get(3)
π lsm_fs_total_space_get β the Libstoragemgmt C API Manual got a glow-up β¨
okay bestie, pull up a chair πͺ because we're about to talk about lsm_fs_total_space_get, and honestly? she's a tiny function with main character energy. this is from the Libstoragemgmt C API Manual (yes, the C API, we're being serious and glamorous at the same time π
).
πΈ NAME πΈ
lsm_fs_total_space_get β Retrieves the total space for the lsm_fs.
like. the whole entire name says what she does. no gatekeeping here π«Ά
β¨ SYNOPSIS β¨
uint64_t lsm_fs_total_space_get (lsm_fs *fs);
one function, one argument, zero drama. the way she just works ππ
π ARGUMENTS π
fsβ File system to retrieve total space for. that's the one. the only one. she's the blueprint π
π¦ VERSION π¦
1.0 β vintage but still thriving, fr fr β
π DESCRIPTION π
Retrieves the total space in bytes for the lsm_fs.
that's it. that's the whole vibe. bytes, not megabytes, not gigabytes, not "some amount idk" β bytes, bestie πβ¨. you hand her an lsm_fs and she tells you how much room that file system has in total. it's giving "let me check the capacity real quick" π₯
π RETURN π
Returns a uint64_t. π«
and here's the part where you gotta pay attention, no cap:
if the argumentfsis NULL, or it's not a validlsm_fspointer, you get back 0.
so like, 0 is the "girl, that's not a real file system" answer π. it's not a crash, it's not a mystery, it's just a very polite zero. so if you ever call this and get 0, do a lil vibe check on your pointer first before you spiral π
π SEE ALSO π
not me checking... okay so there's genuinely nothing listed here, so instead please accept this SEE ALSO of my heart: go read the rest of the Libstoragemgmt C API Manual pages, they're all your besties too π«Άπ
and that's the whole page, periodt. π
this beauty is from the Libstoragemgmt C API Manual, page lsm_fs_total_space_get(3), dated February 2026 β so go forth, get that total space, and slay β¨πΈππ¦ππ₯π
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· 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