summaryrefslogtreecommitdiff
path: root/tests/05r1-bitmapfile
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-03-22 16:53:51 +1100
committerNeilBrown <neilb@suse.de>2012-03-22 16:53:51 +1100
commitae6c05ad83eaa06f70bec0b0120c6befa9be5870 (patch)
treebd8ed279d043991a56163adc880e7b19a35d6f41 /tests/05r1-bitmapfile
parent9f58469128c99c0d7f434d28657f86789334f253 (diff)
Create: round off size for RAID1 arrays.
RAID1 arrays don't have a chunk size, but if you ever convert one to RAID5 you will need at least a small one >= 4K. So round of size to a multiple of 64K. This only affect Create, not "--grow --size=max". The latter is too hard and with smaller returns. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/05r1-bitmapfile')
-rw-r--r--tests/05r1-bitmapfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/05r1-bitmapfile b/tests/05r1-bitmapfile
index 953613d7..e1fc3de8 100644
--- a/tests/05r1-bitmapfile
+++ b/tests/05r1-bitmapfile
@@ -6,11 +6,11 @@ bmf=$targetdir/bitmap
rm -f $bmf
mdadm --create --run $md0 --level=1 -n2 --delay=1 --bitmap $bmf $dev1 $dev2
check wait
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
mdadm -S $md0
mdadm --assemble $md0 --bitmap=$bmf $dev1 $dev2
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
dirty1=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
sleep 4
dirty2=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
@@ -20,7 +20,7 @@ then echo >&2 "ERROR bad 'dirty' counts: $dirty1 and $dirty2"
exit 1
fi
mdadm $md0 -f $dev1
-testdev $md0 1 $mdsize1a 1
+testdev $md0 1 $mdsize1a 64
sleep 4
dirty3=`mdadm -X $bmf | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
if [ $dirty3 -lt 400 ]