summaryrefslogtreecommitdiffstats
path: root/tests/03assem-incr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/03assem-incr23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/03assem-incr b/tests/03assem-incr
new file mode 100644
index 0000000..38880a7
--- /dev/null
+++ b/tests/03assem-incr
@@ -0,0 +1,23 @@
+set -x -e
+
+# Test interaction between -I and -A
+# there are locking issue too, but those are hard to test for.
+#
+# Here just test that a partly "-I" assembled array can
+# be completed with "-A"
+
+levels=(raid0 raid1 raid5)
+
+if [ "$LINEAR" == "yes" ]; then
+ levels+=( linear )
+fi
+
+for l in ${levels[@]}
+do
+ mdadm -CR $md0 -l $l -n5 $dev0 $dev1 $dev2 $dev3 $dev4 --assume-clean
+ mdadm -S md0
+ mdadm -I $dev1
+ mdadm -I $dev3
+ mdadm -A /dev/md0 $dev0 $dev1 $dev2 $dev3 $dev4
+ mdadm -S /dev/md0
+done