summaryrefslogtreecommitdiff
path: root/sysfs.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-13 16:57:10 +1000
committerNeilBrown <neilb@suse.de>2013-05-13 16:57:10 +1000
commite6fc80a8958d4dc73d0f69784e0b79687c154759 (patch)
treea04552366e7cce19aa038b6873a87c80258526e3 /sysfs.c
parentb3908491d6cd2f2a265ef674c575e03fd15eaad5 (diff)
Detail: report on inactive arrays.
Array can be inactive when e.g. -I is in the process of assembling them. This change allows --detail to report limited information about these arrays. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'sysfs.c')
-rw-r--r--sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysfs.c b/sysfs.c
index f9fb989d..6bc28651 100644
--- a/sysfs.c
+++ b/sysfs.c
@@ -280,6 +280,7 @@ struct mdinfo *sysfs_read(int fd, char *devnm, unsigned long options)
free(dev);
continue;
}
+ sra->array.nr_disks++;
sscanf(buf, "%d:%d", &dev->disk.major, &dev->disk.minor);
/* special case check for block devices that can go 'offline' */