path: root/tests/06wrmostly
diff options
authorMichael Tokarev <>2014-12-20 08:48:44 +0000
committerMichael Tokarev <>2014-12-20 08:48:44 +0000
commit489bea7ee8e1dbecfa517b8415568044ab57c73a (patch)
tree44d4878d4c7da3f4908ea9a765ef9b8f9c141756 /tests/06wrmostly
mdadm (3.3.2-5) unstable; urgency=medium
* use-tempnode-not-devnode.patch: change udev rules file to use $tempnode which works both on wheezy and jessie udev, instead of $devnode which only works in jessie. At this stage it is better to make rules file compatible with old version instead of adding versioned dependency. Should be removed for jessie+1. (Closes: #770883) * fix Closes: list in previous entry (Closes: #771852) # imported from the archive
Diffstat (limited to 'tests/06wrmostly')
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/06wrmostly b/tests/06wrmostly
new file mode 100644
index 00000000..968c1974
--- /dev/null
+++ b/tests/06wrmostly
@@ -0,0 +1,13 @@
+# create a raid1 array with a wrmostly device
+mdadm -CR $md0 -l1 -n3 $dev0 $dev1 --write-mostly $dev2
+testdev $md0 1 $mdsize1a 64
+# unfortunately, we cannot measure if any read requests are going to $dev2
+mdadm -S $md0
+mdadm -CR $md0 -l1 -n3 --write-behind --bitmap=internal --bitmap-chunk=4 $dev0 $dev1 --write-mostly $dev2
+testdev $md0 1 $mdsize1a 64
+mdadm -S $md0