Fix messy --detail output when there is a failed device.
authorNeil Brown <neilb@suse.de>
Tue, 28 Mar 2006 05:51:50 +0000 (05:51 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 28 Mar 2006 05:51:50 +0000 (05:51 +0000)
The missing devices show as garbage.

Signed-off-by: Neil Brown <neilb@suse.de>
Detail.c

index 15c751f..a113933 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -235,6 +235,7 @@ int Detail(char *dev, int brief, int test)
        for (d=0; d<max_disks; d++) {
                disks[d].state = (1<<MD_DISK_REMOVED);
                disks[d].major = disks[d].minor = 0;
+               disks[d].number = disks[d].raid_disk = d;
        }
 
        next = array.raid_disks;