Undoes mod: xfs-cmds:slinx:120772a
[xfstests-dev.git] / dmapi / src / suite2 / data / standard_nfs.dat
1 //
2 // Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
3 // 
4 // This program is free software; you can redistribute it and/or modify it
5 // under the terms of version 2 of the GNU General Public License as
6 // published by the Free Software Foundation.
7 // 
8 // This program is distributed in the hope that it would be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 // 
12 // Further, this software is distributed without any warranty that it is
13 // free of the rightful claim of any third person regarding infringement
14 // or the like.  Any license provided herein, whether implied or
15 // otherwise, applies only to this software file.  Patent licenses, if
16 // any, provided herein do not apply to combinations of this program with
17 // other software, or any other product whatsoever.
18 // 
19 // You should have received a copy of the GNU General Public License along
20 // with this program; if not, write the Free Software Foundation, Inc., 59
21 // Temple Place - Suite 330, Boston MA 02111-1307, USA.
22 // 
23 // Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 // Mountain View, CA  94043, or:
25 // 
26 // http://www.sgi.com 
27 // 
28 // For further information regarding this notice, see: 
29 // 
30 // http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
31
32 // This test will use the following files:
33 //
34 ctf stf ls_to_copy ctest.c
35 fcntl open_test truncate rd wf 
36 read_invis write_invis
37 set_region set_return_on_destroy 
38 --------------------------------------------
39 // These setup commands are run before the daemon starts.
40 // They reset the file structure of the test directory
41 // to a known state.
42 //
43 rm $real_dir/???
44 $1/ctf $1 $real_dir
45 $1/stf $1 $real_dir/l??
46 rm $real_dir/ctest.c
47 cp $1/ctest.c $real_dir
48 chown $lname $real_dir/l??
49 chown $lname $real_dir/ctest.c
50 $1/set_return_on_destroy $real_dir test
51 --------------------------------------------
52 @@ Standard i/o tests (1 of 26):  open
53 @@
54 $1/open_test $2/ls0 o_rdwr
55 event_count 1
56 event[0] read
57 --------------------------------------------
58 @@ Standard i/o tests (2 of 26):  open/trunc
59 @@
60 $1/open_test $2/ls1 o_rdwr o_trunc
61 event_count 2
62 event[0] truncate
63 event[1] attribute
64 --------------------------------------------
65 @@ Standard i/o tests (3 of 26):  open/trunc/create
66 @@
67 $1/open_test $2/ls2 o_rdwr o_trunc o_creat
68 event_count 1
69 event[0] truncate
70 --------------------------------------------
71 @@ Standard i/o tests (4 of 26):  open/create
72 @@
73 $1/open_test $2/ls3 o_rdwr o_creat
74 event_count 1
75 event[0] read
76 --------------------------------------------
77 @@ Standard i/o tests (5 of 26):  new file
78 @@
79 $1/open_test $2/LS3 o_rdwr o_creat
80 event_count 2
81 event[0] create
82 event[1] postcreate
83 --------------------------------------------
84 @@ Standard i/o tests (6 of 26):  append #1
85 @@
86 echo j >> $2/ls4
87 event_count 2
88 event[0] read
89 event[1] write
90 file_handle[0] store_in ls4temp
91 --------------------------------------------
92 @@ Standard i/o tests (7 of 26):  append #2
93 @@
94 echo j >> $2/ls4
95 event_count 1
96 event[0] write
97 file_handle[0] matches ls4temp
98 --------------------------------------------
99 @@ Standard i/o tests (8 of 26):  remove
100 @@
101 /bin/rm $2/ls4
102 event_count 3
103 event[0] remove
104 event[1] destroy
105 event[2] postremove
106 name[1] test
107 contents[1] 123456789abcdefghijklmnopqrstuvwxyz
108 --------------------------------------------
109 @@ Standard i/o tests (9 of 26):  link
110 @@
111 ln $2/ls5 $2/LS5
112 event_count 2
113 event[0] link
114 event[1] postlink
115 --------------------------------------------
116 @@ Standard i/o tests (10 of 26):  deleting link
117 @@
118 /bin/rm $2/LS5
119 event_count 2
120 event[0] remove
121 event[1] postremove
122 --------------------------------------------
123 @@ Standard i/o tests (11 of 26):  return_on_destroy #1
124 @@
125 run_without_test
126 $1/set_return_on_destroy $real_dir
127 --------------------------------------------
128 @@ Standard i/o tests (12 of 26):  return_on_destroy #2
129 @@
130 /bin/rm $2/ls5
131 event_count 3
132 event[0] remove
133 event[1] destroy
134 event[2] postremove
135 name[1] <NONE>
136 contents[1] <NONE>
137 --------------------------------------------
138 @@ Standard i/o tests (13 of 26)
139 @@
140 $1/fcntl f_freesp -o 99999 -l 199999 $2/ls6
141 event_count 2
142 event[0] truncate
143 event[1] attribute
144 --------------------------------------------
145 @@ Standard i/o tests (14 of 26)
146 @@
147 $1/fcntl f_freesp -o 1000 -l 10000 $2/ls6
148 event_count 2
149 event[0] truncate
150 event[1] attribute
151 --------------------------------------------
152 @@ Standard i/o tests (15 of 26) truncate #1
153 @@
154 $1/truncate $2/ls7 99999
155 event_count 2
156 event[0] truncate
157 event[1] attribute
158 --------------------------------------------
159 @@ Standard i/o tests (16 of 26) truncate #2
160 @@
161 $1/truncate $2/ls7 1000
162 event_count 2
163 event[0] truncate
164 event[1] attribute
165 --------------------------------------------
166 @@ Standard i/o tests (17 of 26) execute
167 @@
168 $2/ls8 -l $real_dir
169 event_count 4
170 event[0] read
171 event[1] read
172 event[2] read
173 event[3] read
174 --------------------------------------------
175 @@ Standard i/o tests (18 of 26) symlink
176 @@
177 ln -s $2/junk $2/symlink
178 event_count 2
179 event[0] symlink
180 event[1] postsymlink
181 --------------------------------------------
182 @@ Standard i/o tests (19 of 26) deleting symlink
183 @@
184 /bin/rm $2/symlink
185 event_count 3
186 event[0] remove
187 event[1] destroy
188 event[2] postremove
189 --------------------------------------------
190 @@ Standard i/o tests (20 of 26) mkdir
191 @@
192 mkdir $2/unlikely-named-test-dir
193 event_count 2
194 event[0] create
195 event[1] postcreate
196 --------------------------------------------
197 @@ Standard i/o tests (21 of 26) rmdir
198 @@
199 rmdir $2/unlikely-named-test-dir
200 event_count 3
201 event[0] remove
202 event[1] destroy
203 event[2] postremove
204 --------------------------------------------
205 @@ Standard i/o tests (22 of 26) rename
206 @@
207 mv $2/ls8 $2/LS8
208 event_count 2
209 event[0] rename
210 event[1] postrename
211 --------------------------------------------
212 @@ Standard i/o tests (23 of 26) copy (new)
213 @@
214 cp $2/ls9 $2/LS9
215 event_count 8
216 event[0] create
217 event[1] postcreate
218 event[2] attribute
219 event[3] read
220 event[4] read
221 event[5] read
222 event[6] read
223 event[7] attribute
224 --------------------------------------------
225 @@ Standard i/o tests (24 of 26) copy (onto old)
226 @@
227 cp $2/LS9 $2/ls9
228 event_count 5
229 event[0] truncate
230 event[1] write
231 event[2] write
232 event[3] write
233 event[4] write
234 --------------------------------------------
235 @@ Standard i/o tests (25 of 26) memory-mapped i/o
236 @@
237 // Note to self: don't check event_count
238 //
239 cc -o $2/ll0 $2/ctest.c
240 event[0] truncate
241 event[1] attribute
242 event[2] write
243 --------------------------------------------
244 @@ Standard i/o tests (26 of 26) executing
245 @@
246 $2/ll0
247 event_count 0