Lines Matching +full:on +full:- +full:the +full:- +full:go
6 # SPDX-License-Identifier: BSD-2-Clause
18 # ---
20 # 256 -rw------- 1 root wheel 262144 Oct 3 10:05 file
21 # 256 -rw------- 1 root wheel 262144 Oct 3 10:04 file.orig
24 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
26 set -u
30 grep -q $mntpoint /etc/exports ||
32 rpcinfo 2>/dev/null | grep -q mountd || exit 0
50 static int fd, go;
64 while (go == -1)
66 while (go == 1) {
84 while (go == -1)
86 while (go == 1) {
108 while (go == -1)
110 while (go == 1) {
112 pos = arc4random() % (siz - s);
114 if (lseek(fd, pos, SEEK_SET) == -1)
120 if (lseek(fd, pos, SEEK_SET) == -1)
130 /* Both ftruncate() and fdatasync() triggers the problem */
139 while (go == -1)
141 while (go == 1) {
142 if (fdatasync(fd) == -1)
156 while (go == -1)
158 while (go == 1) {
159 if (ftruncate(fd, siz) == -1) /* No size change */
174 while (go == -1)
176 while (go == 1) {
177 if (fstat(fd, &st) == -1)
195 if ((fd = open(argv[1], O_RDWR)) == -1)
197 if (fstat(fd, &st) == -1)
204 go = -1;
234 go = 1;
236 go = 0;
239 if (munmap(cp, siz) == -1)
244 mycc -o /tmp/$prog -Wall -Wextra -O0 /tmp/$prog.c -lpthread || exit 1
246 mycc -o $serial -Wall -Wextra -O2 ../tools/serial.c || exit 1
247 mount | grep -q "on $mntpoint " && umount -f $mntpoint
248 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
249 mdconfig -s 5g -u $mdstart
250 newfs -n $newfs_flags /dev/md$mdstart > /dev/null
254 mkdir -p $mp2
255 mount | grep -q "on $mp2 " && umount -f $mp2
256 mount -t nfs -o retrycnt=3 127.0.0.1:$mntpoint $mp2 || exit 1
261 #$here/../testcases/swap/swap -t 5m -i 20 > /dev/null &
269 #ktrace -id -f $here/ktrace.out /tmp/$prog file || s=1
272 while pgrep -q swap; do pkill swap; done
274 if ! cmp -s file.orig file; then
275 od -t x1 file.orig > /var/tmp/$prog.file1
276 od -t x1 file > /var/tmp/$prog.file2
278 head -20 $log
280 ls -ls file.orig file
287 mdconfig -d -u $mdstart
288 rm -f $serial /tmp/$prog /tmp/$prog.c $log