[PATCH 5/6] tests: Add a test for write-intent bitmap support for imsm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux