lsm_acces...oup_create(3)
π lsm_access_group_create β from the Libstoragemgmt C API Manual π
okay bestie, so this whole thing is lsm_access_group_create(3) and it lives in the Libstoragemgmt C API Manual and honestly? it's giving "let me introduce you to someone new" energy, because that's literally the whole job. π«Ά
β¨ NAME β¨
lsm_access_group_create β Create a new access group. that's it, that's the vibe. brand new access group, fresh out the box. π
πΈ SYNOPSIS πΈ
int lsm_access_group_create (lsm_connect *conn, const char *name, const
char *init_id, lsm_access_group_init_type init_type, lsm_system *system,
lsm_access_group **access_group, lsm_flag flags);
π¦ ARGUMENTS π¦
okay so here's the cast of characters, and yes every single one matters, no skipping:
connβ a validlsm_connectpointer. like, it has to be valid, bestie, don't be out here passing garbage. πnameβ a string. it's the human recognizable name. lowkey important note: certain storage systems might alter or ignore it, so don't get too attached. πinit_idβ a string. this is the initiator id that's getting added to the group. come on in, initiator. π«Άinit_typeβ anlsm_access_group_init_type. the valid initiator types are:LSM_ACCESS_GROUP_INIT_TYPE_ISCSI_IQNβ iSCSI IQN. yes queen, iSCSI. π₯LSM_ACCESS_GROUP_INIT_TYPE_WWPNβ FC WWPN. fibre channel representation. iconic. β¨
systemβ a pointer oflsm_systemto create the access group for. you gotta say which system, we're not mind readers. πaccess_groupβ output pointer of the newly createdlsm_access_group. and listen, this returned value must be freed with the functionlsm_access_group_record_free. don't leave it hanging, that's a leak and we don't do leaks. πflagsβ reserved for future use, must beLSM_CLIENT_FLAG_RSVD. it's reserved, so leave it alone. periodt. π
π VERSION π
1.0 β baby's first version, and she ate. π
π DESCRIPTION π
so basically: creates a new access group with one initiator in it. just one. that's the starting lineup. π
and then, if you want more (and you know you do), you may expand the access group by adding more initiators via lsm_access_group_initiator_add. it's giving build-a-bear but for initiators. π§
β CAPABILITY β
LSM_CAP_ACCESS_GROUP_CREATE_WWPN
LSM_CAP_ACCESS_GROUP_CREATE_ISCSI_IQN
both of them. slay. π
π RETURN π
returns an error code, as enumerated by lsm_error_number. here's the lineup:
LSM_ERR_OK- on success. we love to see it. π
LSM_ERR_INVALID_ARGUMENT- when any argument is NULL, or the flags are invalid, or the system pointer is invalid, or the
init_typeis invalid, or the initiator ID string is illegal. so many ways to mess up and it will absolutely clock you. π
- when any argument is NULL, or the flags are invalid, or the system pointer is invalid, or the
LSM_ERR_NO_SUPPORT- not supported. nope. not today. π
LSM_ERR_NOT_FOUND_SYSTEM- when the specified system does not exist. she's not here, girl. π
real talk though bestie: check that return code. LSM_ERR_OK is the only one you want to see. anything else is a vibe check failure. π«Ά
and that's the whole page, no cap. mwah. π
this masterpiece of a manual page is from the Libstoragemgmt C API Manual, dated February 2026, and it's filed under lsm_access_group_create(3) / lsm_acces...oup_create(3) β go forth and create access groups, you gorgeous Unix gremlin. π¦β¨π
π¦ 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