[PATCH 2/2] tests/20raid5journal: fix test_incremental

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove "check inactive", the result of /proc/mdstat is "active (read-only)",
Can not add $dev4 to a read only filesystem, so do "mdadm -I $dev4" first.

Signed-off-by: Chen Rong <rongx.a.chen@xxxxxxxxx>
---
 tests/20raid5journal | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/20raid5journal b/tests/20raid5journal
index f751ace..fee6c0c 100644
--- a/tests/20raid5journal
+++ b/tests/20raid5journal
@@ -40,12 +40,11 @@ test_assemble() {
 # test --incremental
 test_incremental() {
     create_with_journal_and_stop
+    mdadm -I $dev4
     for d in $dev0 $dev1 $dev2 $dev3
     do
         mdadm -I $d
     done
-    check inactive
-    mdadm -I $dev4
     check raid5
     mdadm -S $md0
 
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux