lsm_pool_...space_get(3)

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

πŸ’– 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 p is NULL
  • you also get 0 if p is not a valid lsm_pool pointer
⚠️ ok so real talk β€” that return value of 0 is doing double duty here. a 0 means "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