md_stat
Description:
[ Version ( since = "1.17.21" ) ]
public MDStat[] md_stat (string md) throws Error
get underlying devices from an MD device
This call returns a list of the underlying devices which make up the single software RAID array device md
.
To get a list of software RAID devices, call list_md_devices.
Each structure returned corresponds to one device along with additional status information:
mdstat_device
The name of the underlying device.
mdstat_index
The index of this device within the array.
mdstat_flags
Flags associated with this device. This is a string containing (in no specific order) zero or more of the following
flags:
W
write-mostly
F
device is faulty
S
device is a RAID spare
R
replacement
This function depends on the feature "mdadm". See also feature_available.
Parameters:
this |
A GuestfsSession object |
Returns:
an array of MDStat objects, or NULL on error |