Detail: fix wrong condition in recent change.
Now that we can print device details with a specific raid_disk but not disk.number, the condition for "print either disk.number or disk.raid_disk" must be make more specific. Reported-by: Coly Li <colyli@suse.com> Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
parent
f7cf9699dc
commit
e652d1aa29
2
Detail.c
2
Detail.c
|
@ -619,7 +619,7 @@ This is pretty boring
|
|||
continue;
|
||||
if (!c->brief) {
|
||||
if (d == array.raid_disks*2) printf("\n");
|
||||
if (disk.number < 0)
|
||||
if (disk.number < 0 && disk.raid_disk < 0)
|
||||
printf(" - %5d %5d - ",
|
||||
disk.major, disk.minor);
|
||||
else if (disk.raid_disk < 0 || disk.state & (1<<MD_DISK_JOURNAL))
|
||||
|
|
Loading…
Reference in New Issue