lsm_access_group_list(3)
β¨ lsm_access_group_list β¨
okay so bestie, we're in the Libstoragemgmt C API Manual today and the star of the show is lsm_access_group_list(3) β she retrieves a list of access groups π no cap, that's literally her whole job.
πΈ NAME πΈ
lsm_access_group_list β Retrieves a list of access groups.
π SYNOPSIS π
int lsm_access_group_list (lsm_connect *conn, const char *search_key,
const char *search_value, lsm_access_group **groups[], uint32_t
*group_count, lsm_flag flags);
π¦ ARGUMENTS π¦
connβ a validlsm_connectpointer. Like, she has to be real, not NULL, bestie πsearch_keyβ the search key. PassNULLif you want all of them, no filter, we're just vibing. The valid search keys are:"id"and"system_id". That's it, that's the list πsearch_valueβ the search value. The thing you're searching for. Iconic pairing withsearch_key, fr fr.groups[]β output pointer of anlsm_access_grouparray. Heads up: you gotta free this yourself withlsm_access_group_record_array_free. She does not clean up after herself, that's on you π«Άgroup_countβ output pointer ofuint32_t. Number of access groups. So you know how many you got.flagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. Not me telling you to not get creative with this one π
π VERSION π
1.0
π DESCRIPTION π
Gets a list of access group on this connection. Okay so real talk β an access group is also known as a host group on some storage systems, so if you see that name floating around, it's the same girl, different outfit β¨. What she does is define a group of initiators that all share the same access to the volume. Group chat but for initiators, honestly.
The access group properties could be retrieved by these functions:
lsm_access_group_id_getlsm_access_group_name_getlsm_access_group_system_id_getlsm_access_group_initiator_id_get
π CAPABILITY π
LSM_CAP_ACCESS_GROUPS
π₯ RETURN π₯
Returns an error code as enumerated by lsm_error_number. The possibilities, bestie:
LSM_ERR_OKβ on success π we ate, no crumbs.LSM_ERR_INVALID_ARGUMENTβ when any argument isNULLor there's invalid flags or an invalid search key. Basically you handed her something cursed and she's not about it.LSM_ERR_NO_SUPPORTβ not supported. She simply cannot, and she said so respectfully π
ngl if you're getting anything other than LSM_ERR_OK, double check your args first, that's usually the culprit π
okay that's the whole page, you're so welcome π
mwah. this was lsm_access_group_list(3) from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β periodt, take care of her and she'll take care of your access groups π¦πβ¨
π¦ 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