summaryrefslogtreecommitdiffstats
path: root/tests/05r5-internalbitmap
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-01 01:24:11 +0200
committerNeilBrown <neilb@suse.de>2013-05-01 01:24:11 +0200
commit79b2ed4f243b4ac59b4985f513b87dcde4fa6b8f (patch)
tree699881f495a4139d205777bcb6979df8f85ccfba /tests/05r5-internalbitmap
parentmdmon: Add missing option documentation to --help output (diff)
downloadmdadm-79b2ed4f243b4ac59b4985f513b87dcde4fa6b8f.tar.xz
mdadm-79b2ed4f243b4ac59b4985f513b87dcde4fa6b8f.zip
tests: zero devices before --adding them.
Linux 3.10 will allow more "--add" to be handled as "--re-add". To be sure the tests work correctly we sometimes need to zero the device to ensure it really is an --add that happens. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/05r5-internalbitmap')
-rw-r--r--tests/05r5-internalbitmap1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/05r5-internalbitmap b/tests/05r5-internalbitmap
index 591c9dbf..13dc5921 100644
--- a/tests/05r5-internalbitmap
+++ b/tests/05r5-internalbitmap
@@ -30,6 +30,7 @@ fi
mdadm -S $md0
mdadm --assemble -R $md0 $dev2 $dev3
+mdadm --zero $dev1 # force --add, not --re-add
mdadm $md0 --add $dev1
check recovery