summaryrefslogtreecommitdiffstats
path: root/tests/05r1-re-add
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-11-17 13:15:32 +1100
committerNeilBrown <neilb@suse.de>2009-11-17 13:15:32 +1100
commit7d5c3964ccfaace123f7b75e15d38c2650e013d8 (patch)
tree7103dfe3f49a51131e59233449ffdfd731e0179b /tests/05r1-re-add
parent5f175898dedb2bb2635d4d1dcb2afa8c420d5eae (diff)
downloadmdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.tar.gz
mdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.tar.xz
mdadm-7d5c3964ccfaace123f7b75e15d38c2650e013d8.zip
Change default metadata from 0.90 to 1.1
1.1 is more flexible in a number of ways and is safer. 0.90 is still fully supported. 1.0 should possibly be used for RAID1 arrays that you want to boot off, depending on your boot loader. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/05r1-re-add')
-rw-r--r--tests/05r1-re-add8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/05r1-re-add b/tests/05r1-re-add
index b2dd82e..97db6c5 100644
--- a/tests/05r1-re-add
+++ b/tests/05r1-re-add
@@ -8,7 +8,7 @@
mdadm -CR $md0 -l1 -n2 -binternal -d1 $dev1 $dev2
check resync
check wait
-testdev $md0 1 $mdsize0 1
+testdev $md0 1 $mdsize1 1
sleep 4
mdadm $md0 -f $dev2
@@ -21,10 +21,10 @@ check nosync
mdadm $md0 -f $dev2
sleep 1
mdadm $md0 -r $dev2
-testdev $md0 1 $mdsize0 1
+testdev $md0 1 $mdsize1 1
mdadm $md0 -a $dev2
check wait
-cmp --bytes=$[$mdsize0*1024] $dev1 $dev2
+cmp --ignore-initial=$[16*512] --bytes=$[$mdsize0*1024] $dev1 $dev2
mdadm $md0 -f $dev2; sleep 1
mdadm $md0 -r $dev2
@@ -32,5 +32,5 @@ if dd if=/dev/zero of=$md0 ; then : ; fi
mdadm $md0 -a $dev2
check recovery
check wait
-cmp --bytes=$[$mdsize0*1024] $dev1 $dev2
+cmp --ignore-initial=$[16*512] --bytes=$[$mdsize0*1024] $dev1 $dev2
mdadm -S $md0