Lines Matching +full:- +full:m1
4 # SPDX-License-Identifier: BSD-2-Clause
31 # mounting over non-directories
36 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
42 set -eu
47 mkdir -p $mp1 $mp2
49 mdconfig -a -t swap -s 256m -u $md1
50 newfs $newfs_flags -n md$md1 > /dev/null
52 mdconfig -a -t swap -s 256m -u $md2
53 newfs $newfs_flags -n md$md2 > /dev/null
62 mount -t nullfs $mp1/f1 $mp2/m1 || {
65 mdconfig -d -u $md2
66 mdconfig -d -u $md1
71 (cd ../testcases/swap; ./swap -t 5m -i 20 > /dev/null) &
75 while [ -f $cont ]; do
76 while mount | grep -q "on $mp2/m1 "; do umount $mp2/m1; done 2> /dev/null
77 mount -t nullfs $mp1/f1 $mp2/m1
79 while [ -f $cont ]; do
80 while mount | grep -q "on $mp2/m2 "; do umount $mp2/m2; done 2> /dev/null
81 mount -t nullfs $mp1/f2 $mp2/m2
83 while [ -f $cont ]; do
84 while mount | grep -q "on $mp2/m3 "; do umount $mp2/m3; done 2> /dev/null
85 mount -t nullfs $mp1/f3 $mp2/m3
89 while [ $((`date +%s` - start)) -lt 300 ]; do
90 cat $mp2/m1 $mp2/m2 $mp2/m3 > /dev/null
92 rm -f $cont
93 while pgrep -q swap; do pkill swap; done
97 while mount | grep -q "on $mp2/m$i "; do umount $mp2/m$i; done 2> /dev/null
101 mount -t nullfs $mp1/f1 $mp2/m1
102 mount -t nullfs $mp1/f1 $mp2/m1 2>/dev/null && s=1 || s=0
103 while mount | grep -q "on $mp2/m1 "; do umount $mp2/m1; done 2> /dev/null
106 mount -t nullfs $mp1/f1 $mp2/dir 2>/dev/null && s=2
110 mdconfig -d -u $md2
111 mdconfig -d -u $md1