lsm_system_list(3)

πŸ“¦
version 1.10.3 Β· 3 versions
, in fedora 43, fedora 44

πŸ’– lsm_system_list β€” the Libstoragemgmt C API Manual ✨

okay bestie, welcome to lsm_system_list(3) β€” she's from the Libstoragemgmt C API Manual and she's literally the girl who hands you the whole lineup of storage systems on your connection. no cap. πŸŽ€


🌸 NAME 🌸

lsm_system_list β€” Gets a list of systems on this connection. πŸ’…


✨ SYNOPSIS ✨

int lsm_system_list (lsm_connect *conn, lsm_system **systems[], uint32_t
*system_count, lsm_flag flags);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • conn β€” a valid connection. like, it has to be an actual one, not a vibe. πŸ”₯
  • systems[] β€” output pointer of lsm_system array. and listen, when you're done with the returned data you gotta free it with lsm_system_record_array_free. don't leave her hanging, that's not main character energy. πŸ’€
  • system_count β€” uint32_t. the number of systems. the headcount. the roster size. 🫢
  • flags β€” reserved for future use, must be LSM_CLIENT_FLAG_RSVD. periodt, no other value, don't try it. πŸ™ˆ

🌈 VERSION 🌈

1.0 β€” she's a classic, iconic, first-edition girlie. ⭐


πŸ‘‘ DESCRIPTION πŸ‘‘

Gets a list of systems on this connection. and okay, what even is a system? so glad you asked bestie: a system represents a storage array or direct attached storage RAID. it's giving very "the whole physical situation." examples include:

  • A hardware RAID card: LSI MegaRAID, HP SmartArray. πŸ”₯
  • A storage area network (SAN): EMC VNX, NetApp Filer πŸ’…
  • A software solution running on commodity hardware: Linux targetd, Nexenta ✨

and the system properties?? you can pull those with these functions, bestie:

  • lsm_system_id_get
  • lsm_system_name_get
  • lsm_system_status_get
  • lsm_system_fw_version_get
  • lsm_system_read_cache_pct_get
  • lsm_system_mode_get

it's giving full character sheet. πŸŽ€


πŸ’œ RETURN πŸ’œ

Error code as enumerated by 'lsm_error_number'. like, she will tell you how it went.

  • LSM_ERR_OK
    • On success or searched value not found. (yes, both. she's chill like that. 😌)
  • LSM_ERR_INVALID_ARGUMENT
    • When any argument is NULL or invalid flags. 🚩

πŸ’€ not me reminding you again but fr fr: any NULL argument or a flags value that isn't LSM_CLIENT_FLAG_RSVD and she's handing you LSM_ERR_INVALID_ARGUMENT. vibe check your args first, bestie.

and that's the whole page, iykyk 🌸 this was lsm_system_list(3) from the Libstoragemgmt C API Manual, version 1.0, dated February 2026 β€” stay iconic, free your arrays, and go slay some storage systems. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from