lsm_volume_disable(3)
π lsm_volume_disable β bestie, we're taking this volume OFFLINE π
okay so this is a page from the Libstoragemgmt C API Manual, and it's all about lsm_volume_disable, aka the function that tells a volume to go night-night. π¦
β¨ NAME β¨
lsm_volume_disable β Set a Volume to offline
β¨ SYNOPSIS β¨
int lsm_volume_disable (lsm_connect *conn, lsm_volume *volume, lsm_flag
flags);
like. three args. that's it. we love a low-maintenance icon. π
β¨ ARGUMENTS β¨
connβ a Validlsm_connectpointer. must be valid, no fake ones bestie.volumeβ the pointer oflsm_volumeto be disabled. this is the lil guy we're sending to sleep π΄flagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. do not get creative here. the future isn't here yet.
β¨ VERSION β¨
1.0 β iconic since day one β¨
β¨ DESCRIPTION β¨
Disable the read and write access to the specified volume.
that's the whole vibe. volume gets its read + write privileges revoked. it's giving grounded. π«π π«βοΈ
β¨ CAPABILITY β¨
LSM_CAP_VOLUME_DISABLE
yep, that's the capability you're looking for. if your thing doesn't have it, we're gonna have a problem (see LSM_ERR_NO_SUPPORT below π).
β¨ RETURN β¨
Error code as enumerated by lsm_error_number. the full lineup, no skips: π
LSM_ERR_OK- On success. we ate. π
LSM_ERR_INVALID_ARGUMENT- When any argument is
NULLor not a validlsm_connectpointer or invalid flags.
- When any argument is
LSM_ERR_NOT_FOUND_VOLUME- When volume not found. she's not here, bestie π
LSM_ERR_POOL_NOT_READY- Pool is not ready. give her a minute, she's getting ready π
LSM_ERR_NO_SUPPORT- Not supported. the hardware said no. periodt.
ngl, if you're getting anything other than LSM_ERR_OK, read the list again before you @ me. fr fr. π«Ά
and that's the whole page!! this one came out in February 2026 as part of lsm_volume_disable's very own spot in the manual set β mwah, go disable something responsibly πβ¨πΈ
π¦ 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