]> git.ipfire.org Git - thirdparty/mdadm.git/blame - tests/03assem-incr
tests: Gate tests for linear flavor with variable LINEAR
[thirdparty/mdadm.git] / tests / 03assem-incr
CommitLineData
71417de6
N
1set -x -e
2
3# Test interaction between -I and -A
4# there are locking issue too, but those are hard to test for.
5#
6# Here just test that a partly "-I" assembled array can
7# be completed with "-A"
8
64a4fcb4
SL
9levels=(raid0 raid1 raid5)
10
11if [ "$LINEAR" == "yes" ]; then
12 levels+=( linear )
13fi
14
15for l in ${levels[@]}
71417de6
N
16do
17 mdadm -CR $md0 -l $l -n5 $dev0 $dev1 $dev2 $dev3 $dev4 --assume-clean
18 mdadm -S md0
19 mdadm -I $dev1
20 mdadm -I $dev3
21 mdadm -A /dev/md0 $dev0 $dev1 $dev2 $dev3 $dev4
22 mdadm -S /dev/md0
23done