test/00names: use appropriate mdadm.conf
Using non-numeric names needs an mdadm.conf setting, so make sure we have one. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
97e3a6a0e0
commit
9ccfd3be30
1
mdadm.c
1
mdadm.c
|
@ -827,6 +827,7 @@ int main(int argc, char *argv[])
|
|||
case O(MISC, ConfigFile):
|
||||
case O(MONITOR,'c'):
|
||||
case O(MONITOR,ConfigFile):
|
||||
case O(CREATE,ConfigFile):
|
||||
if (configfile) {
|
||||
pr_err("configfile cannot be set twice. "
|
||||
"Second value is %s.\n", optarg);
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
set -x -e
|
||||
|
||||
# create arrays with non-numeric names
|
||||
conf=$targetdir/mdadm.conf
|
||||
echo "CREATE names=yes" > $conf
|
||||
|
||||
for i in linear raid0 raid1 raid4 raid5 raid6
|
||||
do
|
||||
mdadm -CR /dev/md/$i -l $i -n 4 $dev4 $dev3 $dev2 $dev1
|
||||
mdadm -CR --config $conf /dev/md/$i -l $i -n 4 $dev4 $dev3 $dev2 $dev1
|
||||
check $i
|
||||
[ -d /sys/class/block/md_$i/md ]
|
||||
mdadm -S md_$i
|
||||
|
|
Loading…
Reference in New Issue