summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2015-12-23 12:15:32 +1100
committerNeilBrown <neilb@suse.com>2015-12-23 12:15:32 +1100
commite652d1aa294af2c216660f6be3447bbf550d179e (patch)
tree204a4387de43456a4f46690f520ef431b49bcafd /Detail.c
parentf7cf9699dc0570ab4bce6d077ba51c329644cf7e (diff)
downloadmdadm-e652d1aa294af2c216660f6be3447bbf550d179e.tar.gz
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>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Detail.c b/Detail.c
index 37403d6..d029219 100644
--- a/Detail.c
+++ b/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))