summaryrefslogtreecommitdiffstats
path: root/kernel/filesystems/nfs/connectathon/patch
blob: 34061fed1581059b778da108786bd4849f645c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Common subdirectories: cthon04/basic and cthon04.fixed/basic
Common subdirectories: cthon04/general and cthon04.fixed/general
Common subdirectories: cthon04/lock and cthon04.fixed/lock
diff -u cthon04/server cthon04.fixed/server
--- cthon04/server	2003-12-31 12:33:32.000000000 -0500
+++ cthon04.fixed/server	2007-03-06 16:14:16.000000000 -0500
@@ -23,11 +23,11 @@
 
 # defaults
 . $InitFile
-export PATH CFLAGS LIBS MOUNT UMOUNT MNTOPTIONS
+export PATH CFLAGS LIBS MOUNT UMOUNT MNTOPTIONS FSOPT
 
 passes="1"
 
-set - `getopt abcfglhm:N:no:p:st $*`
+set - `getopt abcfF:glhm:N:no:p:st $*`
 
 if [ $? != 0 ]
 then
@@ -44,6 +44,8 @@
 		-m)		USRMNTPOINT=$2; shift; shift	;;
 		-o)		MNTOPTIONS=$2; export MNTOPTIONS;
 				shift; shift	;;
+		-F)		FSOPT=$2; export FSOPT;
+				shift; shift	;;
 		-p)		SERVPATH=$2; shift; shift	;;
 		-N)		passes=$2; shift; shift	;;
 		--)		shift; break		;;
@@ -124,15 +126,15 @@
 NFSTESTDIR=$MNTPOINT/$HOSTNAME.test
 export NFSTESTDIR
 echo $DASHN "Start tests on path $NFSTESTDIR [y/n]?" "$BLC"
-read ans
-case $ans in
-    Y*|y*)
-	;;
-    *)
-	echo "Terminating ($MNTPOINT left mounted)."
-	exit 1
-	;;
-esac
+#read ans
+#case $ans in
+    #Y*|y*)
+	#;;
+    #*)
+	#echo "Terminating ($MNTPOINT left mounted)."
+	#exit 1
+	#;;
+#esac
 	
 echo ""
 
Common subdirectories: cthon04/special and cthon04.fixed/special
diff -u cthon04/tests.init cthon04.fixed/tests.init
--- cthon04/tests.init	2003-12-31 12:33:31.000000000 -0500
+++ cthon04.fixed/tests.init	2007-03-06 16:15:39.000000000 -0500
@@ -13,8 +13,8 @@
 # Use this mount command if using:
 #	SVR4
 #	Solaris 2.x
-MOUNTCMD='./domount -F nfs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
-CFSMOUNTCMD='./domount -F cachefs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
+#MOUNTCMD='./domount -F nfs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
+#CFSMOUNTCMD='./domount -F cachefs -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
 
 # Use this mount command if using:
 #	BSD
@@ -26,8 +26,8 @@
 #	Mac OS X
 # At least some BSD systems don't recognize "hard" (since that's the
 # default), so you might also want to use this definition of MNTOPTIONS.
-#MNTOPTIONS="rw,intr"
-#MOUNTCMD='./domount -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
+FSOPT=nfs
+MOUNTCMD='./domount -t $FSOPT -o $MNTOPTIONS $SERVER\:$SERVPATH $MNTPOINT'
 
 # Use this mount command if using:
 #	DG/UX
@@ -40,8 +40,8 @@
 #	SVR4
 #	Solaris 2.x
 #	HPUX
-DASHN=
-BLC=\\c
+#DASHN=
+#BLC=\\c
 
 # Use the next two lines if using:
 #	BSD
@@ -49,12 +49,12 @@
 #	Linux
 #	Tru64 UNIX
 #	Mac OS X
-#DASHN=-n
-#BLC=
+DASHN=-n
+BLC=
 
 # Use this path for:
 #	Solaris 2.x
-PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/bin:/usr/bin:/usr/ucb:/etc:.
+#PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/sbin:/bin:/usr/bin:/usr/ucb:/etc:.
 
 # Use this path for:
 #	Solaris 2.x with GCC
@@ -73,7 +73,7 @@
 #	Tru64 UNIX
 #	SVR4
 #	Linux
-#PATH=/bin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/usr/sbin:.
+PATH=/bin:/usr/bin:/usr/ucb:/usr/ccs/bin:/sbin:/usr/sbin:.
 
 # Use this path for:
 #	DG/UX
@@ -130,12 +130,12 @@
 
 # Use with Solaris 2.x systems.  Need the 5.0 C compiler (or later)
 # for 64-bit mode.
-CC=/opt/SUNWspro/bin/cc
+#CC=/opt/SUNWspro/bin/cc
 # Use this with GCC
 #CC=/opt/gnu/bin/gcc
 # Use this through Solaris 2.6.  For Solaris 2.7 and later, use
 # this for 32-bit mode applications.
-CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG`
+#CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG`
 # Use this with gcc (32-bit binaries):
 #CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -mcpu=ultrasparc`
 # For Solaris 2.7 and later, use this for 64-bit mode applications
@@ -143,11 +143,11 @@
 #CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -xO0 -xarch=v9 -dalign -Xt -L/usr/lib/sparcv9`
 # Use this to make 64-bit binaries with gcc (3.1 or later; untested): 
 #CFLAGS=`echo -DSVR4 -DMMAP -DSOLARIS2X -DSTDARG -m64`
-LIBS=`echo -lsocket -lnsl`
+#LIBS=`echo -lsocket -lnsl`
 # Use this through Solaris 2.5.1.
 #LOCKTESTS=`echo tlock`
 # Use with 2.6 and later systems, 32-bit mode.
-LOCKTESTS=`echo tlocklfs tlock64`
+#LOCKTESTS=`echo tlocklfs tlock64`
 # Use with 2.7 and later, 64-bit mode.
 #LOCKTESTS=`echo tlocklfs`
 
@@ -204,11 +204,11 @@
 #UMOUNT=/bin/umount
 
 # Use with Linux 2.4 / GNU libc 2.2
-#CFLAGS=`echo -DLINUX -DGLIBC=22 -DMMAP -DSTDARG -fwritable-strings`
-#LIBS=`echo -lnsl`
-#MOUNT=/bin/mount
-#UMOUNT=/bin/umount
-#LOCKTESTS=`echo tlocklfs tlock64`
+CFLAGS=`echo -DLINUX -DGLIBC=22 -DMMAP -DSTDARG`
+LIBS=`echo -lnsl`
+MOUNT=/bin/mount
+UMOUNT=/bin/umount
+LOCKTESTS=`echo tlocklfs tlock64`
 
 # Use with Linux if your distro doesn't provide a "cc".
 #CC=gcc
Common subdirectories: cthon04/tools and cthon04.fixed/tools