lsm_capabilities(3)
β¨ NAME β¨
lsm_capabilities β bestie, this is the one that asks the storage array what it can actually do π (query the capabilities of the storage array, fr fr)
πΈ SYNOPSIS πΈ
int lsm_capabilities (lsm_connect *conn, lsm_system *system,
lsm_storage_capabilities **cap, lsm_flag flags);
π ARGUMENTS π
connβ a validlsm_connectpointer, like actually valid, no fake ones pls πsystemβ the system of interest π the one you're curious aboutcapβ output pointer oflsm_storage_capabilities, aka where the storage array capabilities land. Heads up bestie: the returned value must be freed with a call tolsm_capability_record_free. Don't forget. Not me forgetting to free memoryβ¦ πflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. Like it's reserved, so keep it reserved π
β VERSION β
1.0
π¦ DESCRIPTION π¦
Okay so this function queries the capabilities of the storage array. The whole point of a "capability" is to tell you whether a certain piece of functionality is supported by the specified storage system πβ¨
So when you're about to call some function, check what capability it requires first β check the desired function for its required capability. To verify a capability is actually supported, use lsm_capability_supported π«Ά
And here's the lowkey important part: if some functionality is not listed in the enumerated capability type (lsm_capability_type), then that functionality is mandatory and is required to exist. Like it's not optional, it's a given, periodt π
π₯ RETURN π₯
Error code as enumerated by lsm_error_number. The vibe check results:
LSM_ERR_OK- On success π slay
LSM_ERR_INVALID_ARGUMENT- When any argument is
NULLor not a validlsm_connectpointer or not a validlsm_systemor invalid flags π
- When any argument is
LSM_ERR_NOT_FOUND_SYSTEM- When the specified system does not exist π it's just not there bestie
That's the whole page, babe π β brought to you by the Libstoragemgmt C API Manual, version vibe lsm_capabilities(3), dated February 2026. Go forth and query those capabilities, you 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