summaryrefslogtreecommitdiffstats
path: root/Examine.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2001-08-23 04:33:20 +0200
committerNeil Brown <neilb@suse.de>2001-08-23 04:33:20 +0200
commit52826846282e9e224e05dde6d2e4cb38d1fefec7 (patch)
treee776bd76e2d152c28854b83d9776ab8f7ec41317 /Examine.c
parentmdctl-v0.4.2 (diff)
downloadmdadm-52826846282e9e224e05dde6d2e4cb38d1fefec7.tar.xz
mdadm-52826846282e9e224e05dde6d2e4cb38d1fefec7.zip
mdctl-0.5mdctl-0.5
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examine.c b/Examine.c
index 4ed4f6b7..bb4290dc 100644
--- a/Examine.c
+++ b/Examine.c
@@ -147,7 +147,7 @@ int Examine(char *dev)
}
printf("\n");
printf(" Number Major Minor RaidDisk State\n");
- for (d= -1; d<(signed int)super.nr_disks; d++) {
+ for (d= -1; d<(signed int)(super.raid_disks+super.spare_disks); d++) {
mdp_disk_t *dp;
char *dv;
char nb[5];