diff options
author | Neil Brown <neilb@suse.de> | 2005-09-12 05:53:25 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-09-12 05:53:25 +0000 |
commit | c929c82e7faaefb71001e4e8bbb8b7b2c1657513 (patch) | |
tree | 79cda246e0782a5bdde78df9e5188967ff117f09 /tests | |
parent | 0ba1565f10dec0a10fd24c23e0cb5a36e721ce3b (diff) | |
download | mdadm-c929c82e7faaefb71001e4e8bbb8b7b2c1657513.tar.gz mdadm-c929c82e7faaefb71001e4e8bbb8b7b2c1657513.tar.xz mdadm-c929c82e7faaefb71001e4e8bbb8b7b2c1657513.zip |
Add tests/05r1-grow-internal-1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/05r1-grow-internal-1 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/05r1-grow-internal-1 b/tests/05r1-grow-internal-1 new file mode 100644 index 0000000..b26400b --- /dev/null +++ b/tests/05r1-grow-internal-1 @@ -0,0 +1,32 @@ + +# +# create a raid1 array, version 1 superblock, add an internal bitmap +# +mdadm --create --run $md0 -e1 -l 1 -n 2 $dev1 $dev2 +check wait +testdev $md0 1 $mdsize1 1 + +#mdadm -E $dev1 +mdadm --grow $md0 --bitmap=internal --delay=1 + +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'` + +testdev $md0 1 $mdsize1 1 +dirty3=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'` +sleep 4 +dirty4=`mdadm -X $dev2 | sed -n -e 's/.*Bitmap.* \([0-9]*\) dirty.*/\1/p'` + +#echo $dirty1 $dirty2 $dirty3 $dirty4 +if [ $dirty2 -ne 0 -o $dirty4 -ne 0 -o $dirty3 -lt 400 ] +then + echo bad dirty counts + exit 1 +fi + +# now to remove the bitmap +check bitmap +mdadm --grow $md0 --bitmap=none +check nobitmap +mdadm -S $md0 |