summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorConstantine Shulyupin <const@makelinux.com>2015-12-10 15:19:46 +0100
committerCosta <const@makelinux.com>2015-12-10 15:26:07 +0100
commitcd04f56212a1640f02fe4567586e2a02a7888e0c (patch)
tree09162b51ab8775230a09e52c795ff3616f5b0edd /Detail.c
parentmdadm: add test script for raid456 journal (diff)
downloadmdadm-cd04f56212a1640f02fe4567586e2a02a7888e0c.tar.xz
mdadm-cd04f56212a1640f02fe4567586e2a02a7888e0c.zip
Detail.c --test fix
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Detail.c b/Detail.c
index 200f65fa..7eb6bd5e 100644
--- a/Detail.c
+++ b/Detail.c
@@ -339,7 +339,8 @@ int Detail(char *dev, struct context *c)
(disks[d*2+1].state & (1<<MD_DISK_SYNC))) {
avail_disks ++;
avail[d] = 1;
- }
+ } else
+ rv |= !! c->test;
}
if (c->brief) {
@@ -672,9 +673,6 @@ This is pretty boring
}
}
if (disk.state == 0) spares++;
- if (c->test && d < array.raid_disks
- && !(disk.state & (1<<MD_DISK_SYNC)))
- rv |= 1;
dv=map_dev_preferred(disk.major, disk.minor, 0, c->prefer);
if (dv != NULL) {
if (c->brief)