lsm_initi..._id_verify(3)
π lsm_initiator_id_verify β bestie's guide to checking if your initiator id is even real π
okay so welcome to the Libstoragemgmt C API Manual girlies β¨ this one's lsm_initiator_id_verify(3) and she's a little baddie whose whole job is telling you whether an initiator id is valid. no cap.
β¨ NAME β¨
lsm_initiator_id_verify β Verifies if initiator id is valid. π
π SYNOPSIS π
int lsm_initiator_id_verify (const char *init_id,
lsm_access_group_init_type *init_type);
π¦ ARGUMENTS π¦
init_idβ String to verify. that's it, that's the whole vibe, just a lil string that needs a vibe check πΈinit_typeβlsm_access_grouppointer. The type of initiator ID. lowkey the fun part: you may set it toLSM_ACCESS_GROUP_INIT_TYPE_UNKNOWNand this function will try iSCSI and WWPN for you, then modify this argument to the valid type of initiator type. it's giving helpful fr fr π«Ά
π VERSION π
1.0 β iconic, the original era β¨
π DESCRIPTION π
Verifies whether specified initiator is valid, and here's the checklist bestie:
- iSCSI:
- Starting with
"iqn","eui", or"naa". so if it doesn't start with one of those three? not me accepting it π
- Starting with
- WWPN:
- 16 hex digits(
0-9a-fA-F). exactly 16. count them. i'm literally begging you to count them π
- 16 hex digits(
β RETURN β
Error code as enumerated by 'lsm_error_number', so here's the tea:
LSM_ERR_OK- Is valid initiator. π slay! she passed the vibe check, main character energy confirmed π
LSM_ERR_INVALID_ARGUMENT- Not a valid initiator or any argument is
NULL. π either the id is sus or somebody passed aNULL, and honestly both are giving chaos.
- Not a valid initiator or any argument is
π«Ά little reminder bestie: ifinit_typewasLSM_ACCESS_GROUP_INIT_TYPE_UNKNOWNgoing in, it comes back out changed. don't be surprised, that's the whole point, iykyk β¨
okay that's the page!! this was lsm_initiator_id_verify, brought to you by the Libstoragemgmt C API Manual, version 1.0, dated February 2026. mwah, go verify some initiator ids responsibly πβ¨ππ¦πΈ
π¦ 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