lsm_volume_disable(3)

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

πŸ’– 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 Valid lsm_connect pointer. must be valid, no fake ones bestie.
  • volume β€” the pointer of lsm_volume to be disabled. this is the lil guy we're sending to sleep 😴
  • flags β€” Reserved for future use, must be LSM_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 NULL or not a valid lsm_connect pointer or invalid flags.
  • 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