summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test4
1 files changed, 3 insertions, 1 deletions
diff --git a/test b/test
index 3d72228..696e682 100644
--- a/test
+++ b/test
@@ -34,7 +34,8 @@ mdsize12=19992
cleanup() {
$mdadm -Ss
for d in 0 1 2 3 4 5 6 7
- do losetup -d /dev/loop$d ; # rm -f $targetdir/mdtest$d
+ do
+ losetup -d /dev/loop$d ; # rm -f $targetdir/mdtest$d
done
}
@@ -44,6 +45,7 @@ devlist=
for d in 0 1 2 3 4 5 6 7
do
[ -f $targetdir/mdtest$d ] || dd if=/dev/zero of=$targetdir/mdtest$d count=$size bs=1K > /dev/null 2>&1
+ [ -b /dev/loop$d ] || mknod /dev/loop$d b 7 $d
if [ $d -eq 7 ]
then
losetup /dev/loop$d $targetdir/mdtest6 # for multipath use