summaryrefslogtreecommitdiff
path: root/tests/03r5assem-failed
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-02-25 14:52:14 +1100
committerNeilBrown <neilb@suse.de>2014-02-25 14:52:14 +1100
commit06f3dae93aae790e4a98e8f6bbe92f39b7be8bfc (patch)
tree466a6d98379ee8355505bdcc4afc6055a51f59a5 /tests/03r5assem-failed
parent237e40cef21995a865c465c6c530ecaf958d3aec (diff)
downloadmdadm-06f3dae93aae790e4a98e8f6bbe92f39b7be8bfc.tar.gz
New test: 03r5assem-failed
This test currently fails, confirming a bug which was recently reported. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'tests/03r5assem-failed')
-rw-r--r--tests/03r5assem-failed12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/03r5assem-failed b/tests/03r5assem-failed
new file mode 100644
index 0000000..d38241d
--- /dev/null
+++ b/tests/03r5assem-failed
@@ -0,0 +1,12 @@
+
+# Create an array, fail one device while array is active, stop array,
+# then re-assemble listing the failed device first.
+
+mdadm -CR $md1 -l5 -n4 $dev0 $dev1 $dev2 $dev3
+check wait
+
+echo 2000 > /sys/block/md1/md/safe_mode_delay
+mkfs $md1
+mdadm $md1 -f $dev0
+mdadm -S $md1
+mdadm -A $md1 $dev0 $dev1 $dev2 $dev3 || exit 1