diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-31 05:50:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-01-31 05:50:23 +0000 |
commit | ae1d23c826fb3bdc59ba6b0fd64e63b7444f02b6 (patch) | |
tree | f4e9c8932fa94f04eacf2118964bf3a54e5ecfe6 /tests/00names | |
parent | Releasing debian version 4.2+20231121-1. (diff) | |
download | mdadm-ae1d23c826fb3bdc59ba6b0fd64e63b7444f02b6.tar.xz mdadm-ae1d23c826fb3bdc59ba6b0fd64e63b7444f02b6.zip |
Merging upstream version 4.2+20240118.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/00names')
-rw-r--r-- | tests/00names | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/00names b/tests/00names index 7a066d8..d996bef 100644 --- a/tests/00names +++ b/tests/00names @@ -4,7 +4,13 @@ set -x -e conf=$targetdir/mdadm.conf echo "CREATE names=yes" > $conf -for i in linear raid0 raid1 raid4 raid5 raid6 +levels=(raid0 raid1 raid4 raid5 raid6) + +if [ "$LINEAR" == "yes" ]; then + levels+=( linear ) +fi + +for i in ${levels[@]} do mdadm -CR --config $conf /dev/md/$i -l $i -n 4 $dev4 $dev3 $dev2 $dev1 check $i |