lsm_volume_unmask(3)
π lsm_volume_unmask π
okay bestie, welcome to the Libstoragemgmt C API Manual β¨ this one's called lsm_volume_unmask and it's the girl who takes the access away. yes, we're doing the revoking one. she said "you can't sit with us" but in storage terms π
πΈ NAME πΈ
lsm_volume_unmask β revokes access to a volume for the specified group
like. she un-invites the group from the volume. the mask is OFF. the party is OVER. π
β¨ SYNOPSIS β¨
int lsm_volume_unmask (lsm_connect *conn, lsm_access_group
*access_group, lsm_volume *volume, lsm_flag flags);
it hands you back an int, because of course it does, it's a C API function and they love returning ints π
π¦ ARGUMENTS π¦
connβ a valid connection. like, an actual live one. if it's NULL we're gonna have a bad time.access_groupβ pointer oflsm_access_group. this is the group losing their VIP pass ποΈvolumeβ pointer oflsm_volume. this is the volume that's about to become exclusive πflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. like, that's not a suggestion bestie, that's the rule π₯
π VERSION π
1.0
π DESCRIPTION π
Revokes access to a volume for the specified group.
that's the whole thing. she's a one-job icon. group had access, now group does not have access, and that is genuinely the entire plot π«Ά
π CAPABILITY π
LSM_CAP_VOLUME_UNMASK
this is the capability check you look for, iykyk β
π RETURN π
Error code as enumerated by lsm_error_number. so like, here's the whole menu:
LSM_ERR_OK- On success. slay β¨
LSM_ERR_INVALID_ARGUMENT- When any argument is NULL or not a valid
lsm_connectpointer or invalid flags or invalidlsm_access_grouppointer or invalidlsm_volume.
- When any argument is NULL or not a valid
LSM_ERR_NOT_FOUND_ACCESS_GROUP- When access group not found. she's not in the system, bestie, nowhere π
LSM_ERR_NOT_FOUND_VOLUME- When volume not found.
LSM_ERR_NO_STATE_CHANGE- When specified volume is not masked to specified access group. like girl there's nothing to revoke, the volume was never masked to them in the first place π
LSM_ERR_NO_SUPPORT- Not supported. the system said "no β€οΈ"
fr fr check your return codes. every single one of them. no skipping, no assuming it worked, that's how you end up debugging at 3am π
and that's the whole page, bestie!! π§ from the Libstoragemgmt C API Manual, this little gem dropped in February 2026, and the source line at the bottom is just lsm_volume_unmask and lsm_volume_unmask(3) looking all cute together. go forth and unmask 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