lsm_fs_free_space_get(3)
π lsm_fs_free_space_get(3) π
okay bestie, welcome to the Libstoragemgmt C API Manual β yes it's a C API manual, yes we're making it cute, no we are not skipping a single detail. sit down, grab a boba, let's talk about how much space your file system has left π«Ά
β¨ NAME β¨
lsm_fs_free_space_get β retrieves the free space for the fs. that's it. that's the whole job. she's a one-task icon and she ate π
β¨ SYNOPSIS β¨
uint64_t lsm_fs_free_space_get (lsm_fs *fs);
literally one argument. we love a low-maintenance function β¨
β¨ ARGUMENTS β¨
fsβ the file system you want the free space for. like, the one you're asking about. give her a real one, okay? π
β¨ VERSION β¨
1.0</puruple>
(the version is 1.0, not 2.0, not "vibes-based", it's 1.0. slay.)
β¨ DESCRIPTION β¨
Retrieves the free space, in bytes, for the fs. that's the tea. bytes. not kilobytes, not "some", not "a lil bit" β bytes, bestie π¦
β¨ RETURN β¨
uint64_t. π
and listen β if the argument fs is NULL, or if it's not a valid lsm_fs pointer, you get back 0. no cap. so if you're staring at a zero and thinking "omg my disk is full", maybe double-check that pointer first, because that 0 might just be a "girl what did you pass me" 0 π
fr fr, the only two ways to get a 0 here are:fsisNULL, orfsis not a validlsm_fspointer. don't @ me.
and that's the whole page, bestie β short, sweet, and fully documented π mwah.
signing off from the Libstoragemgmt C API Manual, February 2026 edition πβ¨ iykyk π¦
π¦ 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