* [PATCH 5/6] tests: Add a test for write-intent bitmap support for imsm
@ 2021-12-09 18:38 Sudhakar Panneerselvam
0 siblings, 0 replies; only message in thread
From: Sudhakar Panneerselvam @ 2021-12-09 18:38 UTC (permalink / raw)
To: jes; +Cc: linux-raid
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@oracle.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-09 18:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-09 18:38 [PATCH 5/6] tests: Add a test for write-intent bitmap support for imsm Sudhakar Panneerselvam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).