lsm_pool_...space_get(3)
π lsm_pool_total_space_get π
okay bestie, welcome to the Libstoragemgmt C API Manual β this lil page lives in section 3 as lsm_pool_...space_get(3) and honestly? it's a short one. a snack. a little amuse-bouche of a function. but we're gonna read it together anyway because that's what besties do π«Ά
β¨ NAME β¨
lsm_pool_total_space_get β retrieves the total space for the pool.
like. that's the whole job. it gets the total space. for the pool. iconic behavior tbh π
πΈ SYNOPSIS πΈ
uint64_t lsm_pool_total_space_get (lsm_pool *p);
one function, one argument, one return type. minimalist. clean. it's giving less is more β¨
π ARGUMENTS π
pβ the pool you want the total space for. that's it. that's the whole list. one (1) pool. hand it over and let the function cook π
π VERSION π
1.0
(vintage, but in a classic way, not in a expired-milk way, ok?)
π¦ DESCRIPTION π¦
so here's the tea, bestie: lsm_pool_total_space_get retrieves the total space in bytes for the pool. bytes. not gigabytes, not vibes, not "some amount." bytes. raw. unfiltered. no cap π―
π RETURN π
it hands you back a uint64_t. and now the important part, so listen up:
- you get 0 if the argument
pisNULL - you also get 0 if
pis not a validlsm_poolpointer
β οΈ ok so real talk β that return value of0is doing double duty here. a0means "bad pointer, bestie, something's wrong" but it could also just be a pool with zero bytes. so likeβ¦ vibe check your pointers before you trust the math, fr fr π
π a lil sign-off π
and that's the whole page, gorgeous π this was the lsm_pool_...space_get(3) manpage from the Libstoragemgmt C API Manual, dated February 2026. go forth and measure your pools, you absolute main character π
β¨π
π¦ 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