lsm_syste...ct_update(3)

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

✨ NAME ✨

lsm_system_read_cache_pct_update β€” bestie, this one changes the read cache percentage for the system you point it at πŸ’…

It lives in the Libstoragemgmt C API Manual, so you already know it's giving serious low-level energy πŸŽ€


🌸 SYNOPSIS 🌸

int lsm_system_read_cache_pct_update (lsm_connect *conn, lsm_system
*system, uint32_t read_pct, lsm_flag flags);

🫢 ARGUMENTS 🫢

  • conn β€” a valid connection, no fake ones allowed, she will notice πŸ™ˆ
  • system β€” the pointer of lsm_system, aka the actual system you're trying to talk to πŸ’–
  • read_pct β€” uint32_t. The desired read cache percentage. Pass O to disable read cache entirely β€” yes, that's a capital letter O in the original, copying it exactly because we do not edit the sacred text, periodt πŸ‘‘
  • flags β€” reserved for future use, must be LSM_CLIENT_FLAG_RSVD. Don't get creative with this one bestie 😭

⭐ VERSION ⭐

1.3 β€” she's been around a minute and she's still iconic ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Only available for hardware RAID cards. That's the whole vibe check β€” if you're not on hardware RAID, this function is not for you, no cap.

Change the read cache percentage for the specified system. That's it, that's the job 🌈


πŸ‘‘ CAPABILITY πŸ‘‘

LSM_CAP_SYS_READ_CACHE_PCT_UPDATE

This is the capability flag that says "yes, this system can actually do the thing." Check it or cry about it πŸ’€


πŸ’œ RETURN πŸ’œ

Error code as enumerated by lsm_error_number. Here's the whole menu, no skips:

  • LSM_ERR_OK
    • On success. We love to see it πŸŽ‰
  • LSM_ERR_INVALID_ARGUMENT
    • When any argument is NULL or not a valid lsm_connect pointer or invalid flags. Basically: you handed her something unserious 😭
  • LSM_ERR_NOT_FOUND_SYSTEM
    • When system not found. She looked. It wasn't there. 🫠
  • LSM_ERR_NO_SUPPORT
    • Not supported. The hardware said "not today" πŸ™…β€β™€οΈ

Heads up bestie: if you're not on a hardware RAID card, don't even bother, fr fr β€” that's a LSM_ERR_NO_SUPPORT waiting to happen πŸ’€

That's the whole page, and honestly? She ate πŸ’… Written up in the Libstoragemgmt C API Manual, last touched February 2026 β€” go forth and cache responsibly, my love πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from