diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@intel.com> | 2017-08-10 11:43:48 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-08-16 08:19:38 +0000 |
commit | a822017f30e0dadc60a687900c2aa4da32e09a93 (patch) | |
tree | a61e6e4cc88c21ac185b89c6b16d793b81701f60 /mdadm.h | |
parent | 0e23c597188a65bdf6cd39fafbf596f2317344da (diff) | |
download | mdadm-a822017f30e0dadc60a687900c2aa4da32e09a93.tar.gz |
Detail: correct output for active arrays
The check for inactive array is incorrect as it compares it against
active array. Introduce a new function md_is_array_active so the check
is consistent across the code.
As the output contains list of disks in the array include this
information in sysfs read.
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1425,6 +1425,7 @@ extern int Restore_metadata(char *dev, char *dir, struct context *c, int md_array_valid(int fd); int md_array_active(int fd); +int md_array_is_active(struct mdinfo *info); int md_get_array_info(int fd, struct mdu_array_info_s *array); int md_set_array_info(int fd, struct mdu_array_info_s *array); int md_get_disk_info(int fd, struct mdu_disk_info_s *disk); |