lsm_fs_free_space_get(3)

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

πŸ’– 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: fs is NULL, or fs is not a valid lsm_fs pointer. 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