lsm_fs_total_space_get(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– 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 argument fs is NULL, or it's not a valid lsm_fs pointer, 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