dmmp_mpath_array_get(3) | Device Mapper Multipath API - libdmmp Manual | dmmp_mpath_array_get(3) |
dmmp_mpath_array_get - Query all existing multipath devices.
int dmmp_mpath_array_get (struct dmmp_context *ctx, struct dmmp_mpath ***dmmp_mps, uint32_t *dmmp_mp_count);
Query all existing multipath devices and store them into a pointer array. The memory of 'dmmp_mps' should be freed via dmmp_mpath_array_free.
int. Valid error codes are:
* DMMP_OK
* DMMP_ERR_BUG
* DMMP_ERR_NO_MEMORY
* DMMP_ERR_NO_DAEMON
* DMMP_ERR_INCONSISTENT_DATA
Error number could be converted to string by dmmp_strerror.
dmmp_mpath_array_get | June 2020 |