diff options
Diffstat (limited to 'test')
-rw-r--r-- | test | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |