summaryrefslogtreecommitdiffstats
path: root/tests/02lineargrow
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:55:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:55:34 +0000
commit7f1d6c8fec531fa1762d6d65576aecbee837982c (patch)
treeb37177c380fa30d0336aad7cac9c72035523206a /tests/02lineargrow
parentInitial commit. (diff)
downloadmdadm-92cb38bc194924fbd2d0c6f6e1011691a333e4cc.tar.xz
mdadm-92cb38bc194924fbd2d0c6f6e1011691a333e4cc.zip
Adding upstream version 4.3.upstream/4.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/02lineargrow')
-rw-r--r--tests/02lineargrow30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/02lineargrow b/tests/02lineargrow
new file mode 100644
index 0000000..d17e232
--- /dev/null
+++ b/tests/02lineargrow
@@ -0,0 +1,30 @@
+
+# create a liner array, and add more drives to to.
+
+if [ "$LINEAR" != "yes" ]; then
+ echo -ne 'skipping... '
+ exit 0
+fi
+
+for e in 0.90 1 1.1 1.2
+do
+ case $e in
+ 0.90 ) sz=$mdsize0 ;;
+ 1 ) sz=$mdsize2_l ;;
+ 1.0 ) sz=$mdsize1 ;;
+ 1.1 ) sz=$mdsize1_l ;;
+ 1.2 ) sz=$mdsize2_l ;;
+ esac
+ mdadm -CRf $md0 --level linear -e $e --raid-disks=1 $dev1
+ testdev $md0 1 $sz 1
+
+ mdadm --grow $md0 --add $dev2
+ testdev $md0 2 $sz 1
+
+ mdadm --grow $md0 --add $dev3
+ testdev $md0 3 $sz 1
+
+ mdadm -S $md0
+ mdadm --zero /dev/loop2
+ mdadm --zero /dev/loop3
+done