lsm_block..._count_get(3)

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

✨ lsm_block_range_block_count_get(3) ✨

okay bestie, welcome to the Libstoragemgmt C API Manual πŸŽ€ this one is a lil baby function but it's still iconic, so let's get into it πŸ’…


πŸ’– NAME πŸ’–

lsm_block_range_block_count_get β€” retrieve the block count of the block range πŸ¦‹


🌸 SYNOPSIS 🌸

uint64_t lsm_block_range_block_count_get (lsm_block_range *br);

✨ ARGUMENTS ✨

  • br β€” the block range you want the block count from, bestie 🫢

πŸ‘‘ VERSION πŸ‘‘

1.0 β€” yes she's been here since day one, a legacy icon fr fr πŸ’œ


🌈 DESCRIPTION 🌈

So like, this function retrieves the block count of the block range. That's the whole vibe. You hand her a block range, she hands you back the count. no cap, it's giving simple and effective πŸ“


⭐ RETURN ⭐

Returns a uint64_t πŸ’–

  • If your lsm_block_range pointer is invalid, you get 0. That's the lowkey sad path 😭 so please, bestie, don't pass her a bad pointer β€” do a vibe check on it first πŸ’€

fr fr: 0 here means "invalid pointer", so if you're getting a 0 back, that's your sign to go look at what you passed in, not a sign that the range is empty πŸ™ˆ

that's the whole page, bestie, you ate it πŸ§šπŸ’… from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β€” mwah, see you in the next manpage πŸŒΈπŸ’œβœ¨

πŸ“¦ where this page comes from