Lines Matching +full:on +full:- +full:the +full:- +full:go
6 # SPDX-License-Identifier: BSD-2-Clause
23 # ---
25 # 256 -rw------- 1 root wheel 262144 Mar 1 19:56 file
26 # 256 -rw------- 1 root wheel 262144 Mar 1 19:55 file.orig
31 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
33 set -u
37 grep -q $mntpoint /etc/exports ||
39 rpcinfo 2>/dev/null | grep -q mountd || exit 0
55 static int fd, go;
64 while (go == -1)
66 while (go == 1) {
81 while (go == -1)
83 while (go == 1) {
102 while (go == -1)
104 while (go == 1) {
106 pos = arc4random() % (siz - s);
108 if (lseek(fd, pos, SEEK_SET) == -1)
114 if (lseek(fd, pos, SEEK_SET) == -1)
124 /* Both ftruncate() and fdatasync() triggers the problem */
129 while (go == -1)
131 while (go == 1) {
133 if (ftruncate(fd, siz) == -1) /* No size change */
136 if (fdatasync(fd) == -1)
155 if ((fd = open(argv[1], O_RDWR)) == -1)
157 if (fstat(fd, &st) == -1)
164 go = -1;
183 go = 1;
185 go = 0;
188 if (munmap(cp, siz) == -1)
193 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c -lpthread || exit 1
195 mycc -o $serial -Wall -Wextra -O2 ../tools/serial.c || exit 1
196 mount | grep -q "on $mntpoint " && umount -f $mntpoint
197 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
198 mdconfig -s 5g -u $mdstart
199 newfs -n $newfs_flags /dev/md$mdstart > /dev/null
203 mkdir -p $mp2
204 mount | grep -q "on $mp2 " && umount -f $mp2
205 mount -t nfs -o retrycnt=3 127.0.0.1:$mntpoint $mp2 || exit 1
210 $here/../testcases/swap/swap -t 5m -i 20 > /dev/null &
220 while pgrep -q swap; do pkill swap; done
222 if ! cmp -s file.orig file; then
223 od -t x1 file.orig > /var/tmp/$prog.file1
224 od -t x1 file > /var/tmp/$prog.file2
226 head -20 $log
228 ls -ls file.orig file
235 mdconfig -d -u $mdstart
236 rm -f $serial /tmp/$prog /tmp/$prog.c $log