lsm_volum...ess_group(3)

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

✨ 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 actual lsm_connect one. no fake ones, bestie πŸ’…
  • group β€” pointer of lsm_access_group. the group we're snooping on πŸ‘€
  • volumes[] β€” output pointer of lsm_volume array. heads up: the returned value must be freed with a call to lsm_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 be LSM_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_connect pointer or invalid flags or invalid lsm_access_group pointer. basically when you handed her something cursed 😭
  • 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