lsm_syste...ct_update(3)
β¨ 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 oflsm_system, aka the actual system you're trying to talk to πread_pctβuint32_t. The desired read cache percentage. PassOto 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 beLSM_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
NULLor not a validlsm_connectpointer or invalid flags. Basically: you handed her something unserious π
- When any argument is
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
- 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