lsm_pool_list(3)
π lsm_pool_list β bestie edition π
okay so this is a page from the Libstoragemgmt C API Manual, and we're talking about lsm_pool_list(3), which is lowkey the moment you go "hey, what storage pools do we even have around here" π¦
β¨ NAME β¨
lsm_pool_list β Query the list of storage pools on this connection.
Like, all of them. The whole roster. π
πΈ SYNOPSIS πΈ
int lsm_pool_list (lsm_connect *conn, char *search_key, char
*search_value, lsm_pool **pool_array[], uint32_t *count, lsm_flag
flags);
π ARGUMENTS π
connβ a Validlsm_connectpointer. Bestie, it has to be valid, we're not doing chaos today πsearch_keyβ the search key. PassNULLfor all of them. The valid search keys are:"id","system_id".search_valueβ the search value. Yeah, it pairs with the key. Iconic duo fr fr.pool_array[]β output pointer oflsm_poolarray. Heads up bestie: it should be manually freed bylsm_pool_record_array_free. She does not clean up after herself, you gotta do it πcountβ output pointer ofuint32_t. Number of storage pools. The receipts. π§Ύflagsβ Reserved for future use, must beLSM_CLIENT_FLAG_RSVD. Like, must must. No freestyling here.
β VERSION β
1.0
π DESCRIPTION π
Query the list of storage pools on this connection. And okay, here's the tea: Pool is the only place a volume or a file system could created from. So like, pool is the main character and everything else is just living in her house π β¨
Pool properties could be retrieved by these functions:
lsm_pool_id_getlsm_pool_name_getlsm_pool_system_id_getlsm_pool_free_space_getlsm_pool_total_space_getlsm_pool_status_getlsm_pool_status_info_getlsm_pool_unsupported_actions_getlsm_pool_element_type_get
Nine little getters, all lined up, all serving looks π
π RETURN π
Error code as enumerated by 'lsm_error_number'.
LSM_ERR_OK- On success or searched value not found. Yeah, "not found" still counts as okay β she's not mad, she's just telling you it's not there π«Ά
LSM_ERR_INVALID_ARGUMENT- When any argument is
NULLor invalid flags or invalid search key. Basically when you show up with nonsense, she's gonna flag it. π
- When any argument is
and that's the whole page bestie!! no cap, you're now certified in pool listing π
signing off β this one came from the Libstoragemgmt C API Manual, page lsm_pool_list(3), dated February 2026 πΈπ¦β¨
π¦ 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