lsm_volum...ess_group(3)
β¨ lsm_volumes_accessible_by_access_group β the bestie edition β¨
okay so this is a page from the Libstoragemgmt C API Manual, and honestly? it's giving "who can touch what" but make it storage. sit down, grab a π, we're doing this.
π NAME π
lsm_volumes_accessible_by_access_group β the function that asks the big question: which volumes does this specific access group actually get to see? π¦
πΈ SYNOPSIS πΈ
int lsm_volumes_accessible_by_access_group (lsm_connect *conn,
lsm_access_group *group, lsm_volume **volumes[], uint32_t *count,
lsm_flag flags);
π ARGUMENTS π
connβ a valid connection. like, an actuallsm_connectone. no fake ones, bestie πgroupβ pointer oflsm_access_group. the group we're snooping on πvolumes[]β output pointer oflsm_volumearray. heads up: the returned value must be freed with a call tolsm_volume_record_array_free. not optional, not vibes-based, actually free it π«Άcountβuint32_t. the number of volumes. the β¨quantityβ¨ if you will.flagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. like it's reserved-reserved, don't get creative π₯
β VERSION β
1.0 β she's a 1.0 girlie and she's thriving π
π DESCRIPTION π
Return a list of volumes which is accessible by specified access group. that's it, that's the whole plot. it's giving "show me your volumes, bestie" π
π§ CAPABILITY π§
LSM_CAP_VOLUMES_ACCESSIBLE_BY_ACCESS_GROUP
that's the capability you're checking for, iykyk. no cap. β¨
π RETURN π
Error code as enumerated by lsm_error_number. here's the whole menu, no skipping:
LSM_ERR_OK- On success. π slay, it worked.
LSM_ERR_INVALID_ARGUMENT- When any argument is NULL or not a valid
lsm_connectpointer or invalid flags or invalidlsm_access_grouppointer. basically when you handed her something cursed π
- When any argument is NULL or not a valid
LSM_ERR_NOT_FOUND_ACCESS_GROUP- When access group not found. she's not here, girl, she left π
LSM_ERR_NO_SUPPORT- Not supported. the vibe check failed π
fr fr, always check the return code. the return code is the main character here.
and that's the whole page, bestie π«Ά this was written up in the Libstoragemgmt C API Manual, and the version floating around is from February 2026 β so if you're reading this, hi from the future, hope your volumes were accessible πβ¨π
π¦ 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