diff options
author | Constantine Shulyupin <const@makelinux.com> | 2015-12-10 15:19:46 +0100 |
---|---|---|
committer | Costa <const@makelinux.com> | 2015-12-10 15:26:07 +0100 |
commit | cd04f56212a1640f02fe4567586e2a02a7888e0c (patch) | |
tree | 09162b51ab8775230a09e52c795ff3616f5b0edd /Detail.c | |
parent | mdadm: add test script for raid456 journal (diff) | |
download | mdadm-cd04f56212a1640f02fe4567586e2a02a7888e0c.tar.xz mdadm-cd04f56212a1640f02fe4567586e2a02a7888e0c.zip |
Detail.c --test fix
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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) |