imsm now supports write-intent bitmaps introduced by commit, fbc425562c57. This new test case performs some basic test using bitmaps with imsm. Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@xxxxxxxxxx> --- tests/09imsm-bitmap | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/09imsm-bitmap diff --git a/tests/09imsm-bitmap b/tests/09imsm-bitmap new file mode 100644 index 000000000000..447662f2594b --- /dev/null +++ b/tests/09imsm-bitmap @@ -0,0 +1,18 @@ +. tests/env-imsm-template + +num_disks=2 +size=$((10*1024)) +mdadm -CR $container -e imsm -n $num_disks $dev0 $dev1 +imsm_check container $num_disks + +mdadm -CR $member0 -n $num_disks -l 1 --bitmap=internal $dev0 $dev1 -z $size +check bitmap +testdev $member0 1 $size 64 +mdadm -Ss + +# Re-assemble the array and verify the bitmap is still present +mdadm -A $container $dev0 $dev1 +mdadm -IR $container +check bitmap +testdev ${member0}_0 1 $size 64 +mdadm -Ss -- 1.8.3.1