Lines Matching +full:continue +full:- +full:on +full:- +full:error
23 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
31 # Variation of linger.sh, with emphasis on blocks.
38 mycc -o linger2 -Wall -O2 linger2.c
39 rm -f linger2.c
42 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
43 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
44 mdconfig -a -t swap -s 1g -u $mdstart
45 [ $# -eq 1 ] && opt="$1"
46 [ $# -eq 0 ] && opt=$newfs_flags # No argument == default flag
47 newfs $opt -n md$mdstart > /dev/null
50 set `df -i $mntpoint | tail -1 | awk '{print $3, $6}'`
53 [ -r $mntpoint/.sujournal ] && { size=88; min=8232; }
54 if ! su $testuser -c "cd $mntpoint; /tmp/linger2 $size 2>/dev/null"; then
55 r=`df -i $mntpoint | head -1`
58 r=`df -ik $mntpoint | tail -1`
61 [ `echo $r | awk '{print $3}'` -le $min ] && break
66 while mount | grep "$mntpoint " | grep -q /dev/md; do
69 mdconfig -d -u $mdstart
70 rm -f /tmp/linger2
91 int error = 0, fd, i, j;
105 if ((fd = creat(file, 0660)) == -1) {
108 unlink("continue");
109 error = 1;
115 unlink("continue");
116 error = 1;
119 if (fd != -1 && close(fd) == -1)
125 if (error == 0)
126 j--;
127 for (i = j; i >= 0; i--) {
129 if (unlink(file) == -1)
133 return (error);
139 int error = 0, fd, i, j, status;
145 if ((fd = open("continue", O_CREAT, 0644)) == -1)
154 if ((fd = open("rendezvous", O_CREAT, 0644)) == -1)
160 error += status;
164 if (access("continue", R_OK) == -1) {
168 unlink("continue");
170 return (error != 0);