summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>2017-08-10 11:43:48 +0200
committerJes Sorensen <jsorensen@fb.com>2017-08-16 08:19:38 +0000
commita822017f30e0dadc60a687900c2aa4da32e09a93 (patch)
treea61e6e4cc88c21ac185b89c6b16d793b81701f60 /mdadm.h
parent0e23c597188a65bdf6cd39fafbf596f2317344da (diff)
downloadmdadm-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index ee9b837..191ae8f 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);