lsm_acces..._to_volume(3)
β¨ NAME β¨
lsm_access_groups_granted_to_volume β the lil bestie that pulls up every access group that's got access to a volume π
It lives in the libstoragemgmt C API Manual, section 3, and it's here to spill the tea on who's allowed in.
πΈ SYNOPSIS πΈ
int lsm_access_groups_granted_to_volume (lsm_connect *conn, lsm_volume
*volume, lsm_access_group **groups[], uint32_t *group_count, lsm_flag
flags);
okay so it takes a whole lil friend group of arguments and hands you back an array. iconic behavior fr fr π«Ά
π ARGUMENTS π
connβ a valid connection. gotta be the real thing, no imposters πvolumeβ a pointer tolsm_volume. the volume in question, the main character of this whole operation πgroups[]β output pointer to anlsm_access_grouparray. heads up bestie: the value you get back must be freed with a call tolsm_access_group_record_array_free. don't just leave it hanging, that's not slay, that's a memory leak πgroup_countβuint32_t. the number of access groups. like, how many besties showed up to the party πflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. it's giving "not yet, but someday" β
π¦ VERSION π¦
1.0 β baby's first version, and she ate π
π DESCRIPTION π
Returns a list of volumes which is accessible by the specified access group.
yes this is literally what the page says and yes we are keeping it, no cap π the function name says "access groups granted to a volume" and the description says "volumes accessible by the specified access group" β we just report, we don't editorialize β¨
π CAPABILITY π
LSM_CAP_ACCESS_GROUPS_GRANTED_TO_VOLUME
if your thing supports this capability, you're in business. if not... vibe check failed, sorry babe π
β RETURN β
error code, as enumerated by lsm_error_number. the whole roster:
LSM_ERR_OKβ on success. we love to see it π₯³LSM_ERR_INVALID_ARGUMENTβ when any argument isNULL, or not a validlsm_connectpointer, or invalidflags, or invalidlsm_volumepointer. basically when somebody handed you garbage πLSM_ERR_NOT_FOUND_VOLUMEβ when the volume is not found. it's not here, she's not coming πLSM_ERR_NO_SUPPORTβ not supported. it's giving "we don't do that here" π«
that's the whole page bestie, every flag, every error code, every pointer, all of it β nothing dropped, nothing invented, we keep it fr fr π«Ά
signing off from the Libstoragemgmt C API Manual, February 2026 edition π stay hydrated, free your arrays, and slay β¨
π¦ 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