]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/05r5-internalbitmap
Set default bitmap-chunksize for internal bitmaps to at least 64Meg
[thirdparty/mdadm.git] / tests / 05r5-internalbitmap
index d79db909ca107a0814adcd43d3a309d3c1ad6922..591c9dbf1e7e4205fd8ccf3be8819ce627e137b3 100644 (file)
@@ -2,13 +2,13 @@
 #
 # create a raid1 with an internal bitmap
 #
-mdadm --create --run $md0 --level=5 -n3 --delay=1  --bitmap internal $dev1 $dev2 $dev3
+mdadm --create --run $md0 --level=5 -n3 --delay=1  --bitmap internal --bitmap-chunk=4 $dev1 $dev2 $dev3
 check wait
-testdev $md0 2 $mdsize0 1
+testdev $md0 2 $mdsize1 512
 mdadm -S $md0
 
 mdadm --assemble $md0 $dev1 $dev2 $dev3
-testdev $md0 2 $mdsize0 1
+testdev $md0 2 $mdsize1 512
 dirty1=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 sleep 4
 dirty2=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
@@ -18,7 +18,7 @@ then  echo >&2 "ERROR bad 'dirty' counts: $dirty1 and $dirty2"
   exit 1
 fi
 mdadm $md0 -f $dev1
-testdev $md0 2 $mdsize0 1
+testdev $md0 2 $mdsize1 512
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]