From: Sudhakar Panneerselvam <sudhakar.panneerselvam@oracle.com>
To: jes@trained-monkey.org
Cc: linux-raid@vger.kernel.org
Subject: [PATCH 5/6] tests: Add a test for write-intent bitmap support for imsm
Date: Thu, 9 Dec 2021 18:38:17 +0000 [thread overview]
Message-ID: <20211209183817.GA22663@oracle.com> (raw)
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
reply other threads:[~2021-12-09 18:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211209183817.GA22663@oracle.com \
--to=sudhakar.panneerselvam@oracle.com \
--cc=jes@trained-monkey.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.