]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - tests/05r1-internalbitmap-v1c
Free map to avoid resource leak issues
[thirdparty/mdadm.git] / tests / 05r1-internalbitmap-v1c
index 9eb9a45427da9c48578eb6c9e0c81c91d6300c0b..2eaea59b79c05377091568a7a4b049a7083b9a8a 100644 (file)
@@ -1,15 +1,15 @@
 
-# 
+#
 # create a raid1 with an internal bitmap
 #
-mdadm --create --run $md0 --metadata=1.2 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk 4 $dev1 $dev2  
+mdadm --create --run $md0 --metadata=1.2 --level=1 -n2 --delay=1  --bitmap internal --bitmap-chunk 4 $dev1 $dev2
 check wait
 check bitmap
-testdev $md0 1 $mdsize12 1
+testdev $md0 1 $mdsize12 64
 mdadm -S $md0
 
 mdadm --assemble $md0 $dev1 $dev2
-testdev $md0 1 $mdsize12 1
+testdev $md0 1 $mdsize12 64
 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'`
@@ -19,11 +19,11 @@ then  echo >&2 "ERROR bad 'dirty' counts: $dirty1 and $dirty2"
   exit 1
 fi
 mdadm $md0 -f $dev1
-testdev $md0 1 $mdsize12 1
+testdev $md0 1 $mdsize12 64
 sleep 4
 dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'`
 if [ $dirty3 -lt 400 ]
-then 
+then
    echo >&2 "ERROR dirty count $dirty3 is too small"
    exit 2
 fi