]> git.ipfire.org Git - thirdparty/mdadm.git/commit - util.c
Detail: correct output for active arrays
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Thu, 10 Aug 2017 09:43:48 +0000 (11:43 +0200)
committerJes Sorensen <jsorensen@fb.com>
Wed, 16 Aug 2017 08:19:38 +0000 (08:19 +0000)
commita822017f30e0dadc60a687900c2aa4da32e09a93
treea61e6e4cc88c21ac185b89c6b16d793b81701f60
parent0e23c597188a65bdf6cd39fafbf596f2317344da
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>
Detail.c
mdadm.h
util.c