int lsm_volume_list (lsm_connect *conn, const char *search_key, const char *search_value, lsm_volume **volumes, uint32_t *count, lsm_flag flags);
Valid lsm_connect pointer.
Search key(NULL for all). Valid search keys are: "id", "system_id" and "pool_id".
Output pointer of lsm_volume array. It should be manually freed by lsm_volume_record_array_free.
Output pointer of uint32_t. Number of volumes.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Gets a list of volumes on this connection. Volume properties could be retrieved by these functions:
Error code as enumerated by 'lsm_error_number'.
On success or searched value not found.
When any argument is NULL or invalid flags or invalid search