Lines Matching +full:- +full:30 +full:mv
29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
31 # mv <nullfs src> <origin src> removes the file. This is OK on FreeBSD.
32 # This is handled on Linux with "mount --bind".
36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
39 mdconfig -a -t swap -s 512m -u $mdstart || exit 1
41 newfs -n -b 4096 -f 512 -i 1024 md$mdstart > /dev/null
46 [ -d $mp2 ] || mkdir -p $mp2
47 mount | grep -wq $mp2 && umount $mp2
48 mount -t nullfs $mntpoint $mp2
52 # mv's rename(2) fails as this is a "cross mount" ->
55 mv $mp2/file $mountpoint/file
56 [ -f $mntpoint/file ] ||
57 { ls -ali $mntpoint $mp2; status=0; }
58 # { echo FAIL; ls -ali $mntpoint $mp2; status=1; }
60 while mount | grep $mp2 | grep -q nullfs; do
64 while mount | grep $mntpoint | grep -q /dev/md; do
67 [ $n -gt 30 ] && { echo FAIL; status=2; }
69 mdconfig -d -u $mdstart