1 |
1026 |
ivang |
*** STAT TEST 01 ***
|
2 |
|
|
>>>>Current Time: - rtems_clock_get - 09:00:00 12/31/1988
|
3 |
|
|
Making directory /my_mount_point/dir1
|
4 |
|
|
Making directory /my_mount_point/dir2
|
5 |
|
|
Making directory /my_mount_point/dir3
|
6 |
|
|
Making directory /my_mount_point/dir4
|
7 |
|
|
Making directory /my_mount_point/dir1/dir1
|
8 |
|
|
Making directory /./././my_mount_point/dir1/ dir1
|
9 |
|
|
Making directory /./././my_mount_point/links
|
10 |
|
|
Making directory ///my_mount_point/dir1/dir1/../../dir1/../symlinks/////
|
11 |
|
|
Making file /////my_mount_point/dir1/\//file1\\//
|
12 |
|
|
Making file /my_mount_point/dir1/file2
|
13 |
|
|
Making file /my_mount_point/dir1/file3
|
14 |
|
|
Making file /my_mount_point/dir1/file4
|
15 |
|
|
Making file /my_mount_point/dir1/dir1/file1
|
16 |
|
|
Making file ../../..//my_mount_point/dir1/./././dir1/ file1
|
17 |
|
|
Making file main.c
|
18 |
|
|
Making file dir1/dir1/../../links/dir1
|
19 |
|
|
Making file links/dir2
|
20 |
|
|
Making file links/dir3
|
21 |
|
|
Making file links/dir4
|
22 |
|
|
Making file links/dir1_dir1
|
23 |
|
|
Making file links/dir1_ dir1
|
24 |
|
|
Making file links/../links/../links/links
|
25 |
|
|
Making file links/dir1_file1
|
26 |
|
|
Making file links/dir1_file2
|
27 |
|
|
Making file links/dir1_file3
|
28 |
|
|
Making file links/dir1_file4
|
29 |
|
|
Making file links/dir1_dir1_f1
|
30 |
|
|
Making file links/dir1_dir1 f1
|
31 |
|
|
Making file links/links/links/links_dir1
|
32 |
|
|
Making file links//links_dir2
|
33 |
|
|
Making file links//links_dir3
|
34 |
|
|
Making file links//links_dir4
|
35 |
|
|
Making file links//links_dir1_d1
|
36 |
|
|
Making file links//links_dir1 d1
|
37 |
|
|
Making file links//links_links
|
38 |
|
|
Making file links///links_d1_file1
|
39 |
|
|
Making file links///links_d1_file2
|
40 |
|
|
Making file links///links_d1_file3
|
41 |
|
|
Making file links///links_d1_file4
|
42 |
|
|
Making file links///links_d1_d1_f1
|
43 |
|
|
Making file links///links_r1_d1 f1
|
44 |
|
|
Doing the stat() on all the good absolute paths
|
45 |
|
|
stat( /my_mount_point/dev ) returned
|
46 |
|
|
...st_dev (0x0:0x0)
|
47 |
|
|
...st_ino 2
|
48 |
|
|
...st_mode 40700
|
49 |
|
|
...st_nlink 1
|
50 |
|
|
...st_uid 0
|
51 |
|
|
...st_gid 0
|
52 |
|
|
...st_rdev (0x0:0x0)
|
53 |
|
|
...st_size 0
|
54 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
55 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
56 |
|
|
...st_ctime Sat Dec 31 09:00:00 1988
|
57 |
|
|
stat( ////my_mount_point/dir1/\//file1\\// ) returned
|
58 |
|
|
...st_dev (0x0:0x0)
|
59 |
|
|
...st_ino b
|
60 |
|
|
...st_mode 100000
|
61 |
|
|
...st_nlink 3
|
62 |
|
|
...st_uid 0
|
63 |
|
|
...st_gid 0
|
64 |
|
|
...st_rdev (0x0:0x0)
|
65 |
|
|
...st_size 0
|
66 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
67 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
68 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
69 |
|
|
stat( /my_mount_point/dir1/\\/file2 ) returned
|
70 |
|
|
...st_dev (0x0:0x0)
|
71 |
|
|
...st_ino c
|
72 |
|
|
...st_mode 100000
|
73 |
|
|
...st_nlink 3
|
74 |
|
|
...st_uid 0
|
75 |
|
|
...st_gid 0
|
76 |
|
|
...st_rdev (0x0:0x0)
|
77 |
|
|
...st_size 0
|
78 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
79 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
80 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
81 |
|
|
stat( /my_mount_point/dir1/file3/////\\\ ) returned
|
82 |
|
|
...st_dev (0x0:0x0)
|
83 |
|
|
...st_ino d
|
84 |
|
|
...st_mode 100000
|
85 |
|
|
...st_nlink 3
|
86 |
|
|
...st_uid 0
|
87 |
|
|
...st_gid 0
|
88 |
|
|
...st_rdev (0x0:0x0)
|
89 |
|
|
...st_size 0
|
90 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
91 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
92 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
93 |
|
|
stat( /my_mount_point/dir1/file4 ) returned
|
94 |
|
|
...st_dev (0x0:0x0)
|
95 |
|
|
...st_ino e
|
96 |
|
|
...st_mode 100000
|
97 |
|
|
...st_nlink 3
|
98 |
|
|
...st_uid 0
|
99 |
|
|
...st_gid 0
|
100 |
|
|
...st_rdev (0x0:0x0)
|
101 |
|
|
...st_size 0
|
102 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
103 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
104 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
105 |
|
|
stat( /my_mount_point/dir1/dir1/file1 ) returned
|
106 |
|
|
...st_dev (0x0:0x0)
|
107 |
|
|
...st_ino f
|
108 |
|
|
...st_mode 100000
|
109 |
|
|
...st_nlink 3
|
110 |
|
|
...st_uid 0
|
111 |
|
|
...st_gid 0
|
112 |
|
|
...st_rdev (0x0:0x0)
|
113 |
|
|
...st_size 0
|
114 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
115 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
116 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
117 |
|
|
stat( /my_mount_point/dir1/dir1/ file1 ) returned
|
118 |
|
|
...st_dev (0x0:0x0)
|
119 |
|
|
...st_ino 10
|
120 |
|
|
...st_mode 100000
|
121 |
|
|
...st_nlink 3
|
122 |
|
|
...st_uid 0
|
123 |
|
|
...st_gid 0
|
124 |
|
|
...st_rdev (0x0:0x0)
|
125 |
|
|
...st_size 0
|
126 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
127 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
128 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
129 |
|
|
stat( /my_mount_point/dir1 ) returned
|
130 |
|
|
...st_dev (0x0:0x0)
|
131 |
|
|
...st_ino 3
|
132 |
|
|
...st_mode 40700
|
133 |
|
|
...st_nlink 3
|
134 |
|
|
...st_uid 0
|
135 |
|
|
...st_gid 0
|
136 |
|
|
...st_rdev (0x0:0x0)
|
137 |
|
|
...st_size 1608
|
138 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
139 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
140 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
141 |
|
|
stat( /my_mount_point/dir2//////\ ) returned
|
142 |
|
|
...st_dev (0x0:0x0)
|
143 |
|
|
...st_ino 4
|
144 |
|
|
...st_mode 40700
|
145 |
|
|
...st_nlink 3
|
146 |
|
|
...st_uid 0
|
147 |
|
|
...st_gid 0
|
148 |
|
|
...st_rdev (0x0:0x0)
|
149 |
|
|
...st_size 0
|
150 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
151 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
152 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
153 |
|
|
stat( /my_mount_point/dir3 ) returned
|
154 |
|
|
...st_dev (0x0:0x0)
|
155 |
|
|
...st_ino 5
|
156 |
|
|
...st_mode 40700
|
157 |
|
|
...st_nlink 3
|
158 |
|
|
...st_uid 0
|
159 |
|
|
...st_gid 0
|
160 |
|
|
...st_rdev (0x0:0x0)
|
161 |
|
|
...st_size 0
|
162 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
163 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
164 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
165 |
|
|
stat( /my_mount_point/dir4 ) returned
|
166 |
|
|
...st_dev (0x0:0x0)
|
167 |
|
|
...st_ino 6
|
168 |
|
|
...st_mode 40700
|
169 |
|
|
...st_nlink 3
|
170 |
|
|
...st_uid 0
|
171 |
|
|
...st_gid 0
|
172 |
|
|
...st_rdev (0x0:0x0)
|
173 |
|
|
...st_size 0
|
174 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
175 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
176 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
177 |
|
|
stat( /my_mount_point/dir1/dir1 ) returned
|
178 |
|
|
...st_dev (0x0:0x0)
|
179 |
|
|
...st_ino 7
|
180 |
|
|
...st_mode 40700
|
181 |
|
|
...st_nlink 3
|
182 |
|
|
...st_uid 0
|
183 |
|
|
...st_gid 0
|
184 |
|
|
...st_rdev (0x0:0x0)
|
185 |
|
|
...st_size 536
|
186 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
187 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
188 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
189 |
|
|
stat( /my_mount_point/dir1/ dir1///\\ ) returned
|
190 |
|
|
...st_dev (0x0:0x0)
|
191 |
|
|
...st_ino 8
|
192 |
|
|
...st_mode 40700
|
193 |
|
|
...st_nlink 3
|
194 |
|
|
...st_uid 0
|
195 |
|
|
...st_gid 0
|
196 |
|
|
...st_rdev (0x0:0x0)
|
197 |
|
|
...st_size 0
|
198 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
199 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
200 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
201 |
|
|
stat( /my_mount_point/\/\/\/\/\/\/links\/\/\/\/\/\ ) returned
|
202 |
|
|
...st_dev (0x0:0x0)
|
203 |
|
|
...st_ino 9
|
204 |
|
|
...st_mode 40700
|
205 |
|
|
...st_nlink 3
|
206 |
|
|
...st_uid 0
|
207 |
|
|
...st_gid 0
|
208 |
|
|
...st_rdev (0x0:0x0)
|
209 |
|
|
...st_size 6968
|
210 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
211 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
212 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
213 |
|
|
Doing the stat() on all the good relative paths
|
214 |
|
|
stat( dev ) returned
|
215 |
|
|
...st_dev (0x0:0x0)
|
216 |
|
|
...st_ino 2
|
217 |
|
|
...st_mode 40700
|
218 |
|
|
...st_nlink 1
|
219 |
|
|
...st_uid 0
|
220 |
|
|
...st_gid 0
|
221 |
|
|
...st_rdev (0x0:0x0)
|
222 |
|
|
...st_size 0
|
223 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
224 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
225 |
|
|
...st_ctime Sat Dec 31 09:00:00 1988
|
226 |
|
|
stat( dir1/\//file1\\// ) returned
|
227 |
|
|
...st_dev (0x0:0x0)
|
228 |
|
|
...st_ino b
|
229 |
|
|
...st_mode 100000
|
230 |
|
|
...st_nlink 3
|
231 |
|
|
...st_uid 0
|
232 |
|
|
...st_gid 0
|
233 |
|
|
...st_rdev (0x0:0x0)
|
234 |
|
|
...st_size 0
|
235 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
236 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
237 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
238 |
|
|
stat( dir1/\\/file2 ) returned
|
239 |
|
|
...st_dev (0x0:0x0)
|
240 |
|
|
...st_ino c
|
241 |
|
|
...st_mode 100000
|
242 |
|
|
...st_nlink 3
|
243 |
|
|
...st_uid 0
|
244 |
|
|
...st_gid 0
|
245 |
|
|
...st_rdev (0x0:0x0)
|
246 |
|
|
...st_size 0
|
247 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
248 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
249 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
250 |
|
|
stat( dir1/file3/////\\\ ) returned
|
251 |
|
|
...st_dev (0x0:0x0)
|
252 |
|
|
...st_ino d
|
253 |
|
|
...st_mode 100000
|
254 |
|
|
...st_nlink 3
|
255 |
|
|
...st_uid 0
|
256 |
|
|
...st_gid 0
|
257 |
|
|
...st_rdev (0x0:0x0)
|
258 |
|
|
...st_size 0
|
259 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
260 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
261 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
262 |
|
|
stat( dir1/file4 ) returned
|
263 |
|
|
...st_dev (0x0:0x0)
|
264 |
|
|
...st_ino e
|
265 |
|
|
...st_mode 100000
|
266 |
|
|
...st_nlink 3
|
267 |
|
|
...st_uid 0
|
268 |
|
|
...st_gid 0
|
269 |
|
|
...st_rdev (0x0:0x0)
|
270 |
|
|
...st_size 0
|
271 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
272 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
273 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
274 |
|
|
stat( dir1/dir1/file1 ) returned
|
275 |
|
|
...st_dev (0x0:0x0)
|
276 |
|
|
...st_ino f
|
277 |
|
|
...st_mode 100000
|
278 |
|
|
...st_nlink 3
|
279 |
|
|
...st_uid 0
|
280 |
|
|
...st_gid 0
|
281 |
|
|
...st_rdev (0x0:0x0)
|
282 |
|
|
...st_size 0
|
283 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
284 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
285 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
286 |
|
|
stat( dir1/dir1/ file1 ) returned
|
287 |
|
|
...st_dev (0x0:0x0)
|
288 |
|
|
...st_ino 10
|
289 |
|
|
...st_mode 100000
|
290 |
|
|
...st_nlink 3
|
291 |
|
|
...st_uid 0
|
292 |
|
|
...st_gid 0
|
293 |
|
|
...st_rdev (0x0:0x0)
|
294 |
|
|
...st_size 0
|
295 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
296 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
297 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
298 |
|
|
stat( dir1 ) returned
|
299 |
|
|
...st_dev (0x0:0x0)
|
300 |
|
|
...st_ino 3
|
301 |
|
|
...st_mode 40700
|
302 |
|
|
...st_nlink 3
|
303 |
|
|
...st_uid 0
|
304 |
|
|
...st_gid 0
|
305 |
|
|
...st_rdev (0x0:0x0)
|
306 |
|
|
...st_size 1608
|
307 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
308 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
309 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
310 |
|
|
stat( dir2//////\ ) returned
|
311 |
|
|
...st_dev (0x0:0x0)
|
312 |
|
|
...st_ino 4
|
313 |
|
|
...st_mode 40700
|
314 |
|
|
...st_nlink 3
|
315 |
|
|
...st_uid 0
|
316 |
|
|
...st_gid 0
|
317 |
|
|
...st_rdev (0x0:0x0)
|
318 |
|
|
...st_size 0
|
319 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
320 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
321 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
322 |
|
|
stat( dir3 ) returned
|
323 |
|
|
...st_dev (0x0:0x0)
|
324 |
|
|
...st_ino 5
|
325 |
|
|
...st_mode 40700
|
326 |
|
|
...st_nlink 3
|
327 |
|
|
...st_uid 0
|
328 |
|
|
...st_gid 0
|
329 |
|
|
...st_rdev (0x0:0x0)
|
330 |
|
|
...st_size 0
|
331 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
332 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
333 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
334 |
|
|
stat( dir4 ) returned
|
335 |
|
|
...st_dev (0x0:0x0)
|
336 |
|
|
...st_ino 6
|
337 |
|
|
...st_mode 40700
|
338 |
|
|
...st_nlink 3
|
339 |
|
|
...st_uid 0
|
340 |
|
|
...st_gid 0
|
341 |
|
|
...st_rdev (0x0:0x0)
|
342 |
|
|
...st_size 0
|
343 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
344 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
345 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
346 |
|
|
stat( dir1/dir1 ) returned
|
347 |
|
|
...st_dev (0x0:0x0)
|
348 |
|
|
...st_ino 7
|
349 |
|
|
...st_mode 40700
|
350 |
|
|
...st_nlink 3
|
351 |
|
|
...st_uid 0
|
352 |
|
|
...st_gid 0
|
353 |
|
|
...st_rdev (0x0:0x0)
|
354 |
|
|
...st_size 536
|
355 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
356 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
357 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
358 |
|
|
stat( dir1/ dir1///\\ ) returned
|
359 |
|
|
...st_dev (0x0:0x0)
|
360 |
|
|
...st_ino 8
|
361 |
|
|
...st_mode 40700
|
362 |
|
|
...st_nlink 3
|
363 |
|
|
...st_uid 0
|
364 |
|
|
...st_gid 0
|
365 |
|
|
...st_rdev (0x0:0x0)
|
366 |
|
|
...st_size 0
|
367 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
368 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
369 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
370 |
|
|
stat( main.c ) returned
|
371 |
|
|
...st_dev (0x0:0x0)
|
372 |
|
|
...st_ino 11
|
373 |
|
|
...st_mode 100000
|
374 |
|
|
...st_nlink 1
|
375 |
|
|
...st_uid 0
|
376 |
|
|
...st_gid 0
|
377 |
|
|
...st_rdev (0x0:0x0)
|
378 |
|
|
...st_size 0
|
379 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
380 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
381 |
|
|
...st_ctime Sat Dec 31 09:00:00 1988
|
382 |
|
|
chdir to dev
|
383 |
|
|
stat relative paths that are now bad
|
384 |
|
|
stat( dev ) returned : No such file or directory
|
385 |
|
|
stat( dir1/\//file1\\// ) returned : No such file or directory
|
386 |
|
|
stat( dir1/\\/file2 ) returned : No such file or directory
|
387 |
|
|
stat( dir1/file3/////\\\ ) returned : No such file or directory
|
388 |
|
|
stat( dir1/file4 ) returned : No such file or directory
|
389 |
|
|
stat( dir1/dir1/file1 ) returned : No such file or directory
|
390 |
|
|
stat( dir1/dir1/ file1 ) returned : No such file or directory
|
391 |
|
|
stat( dir1 ) returned : No such file or directory
|
392 |
|
|
stat( dir2//////\ ) returned : No such file or directory
|
393 |
|
|
stat( dir3 ) returned : No such file or directory
|
394 |
|
|
stat( dir4 ) returned : No such file or directory
|
395 |
|
|
stat( dir1/dir1 ) returned : No such file or directory
|
396 |
|
|
stat( dir1/ dir1///\\ ) returned : No such file or directory
|
397 |
|
|
stat( main.c ) returned : No such file or directory
|
398 |
|
|
chdir to ../links
|
399 |
|
|
Doing the stat() on good links
|
400 |
|
|
stat( dir1/dir1/../../links/dir1 ) returned
|
401 |
|
|
...st_dev (0x0:0x0)
|
402 |
|
|
...st_ino 3
|
403 |
|
|
...st_mode 40700
|
404 |
|
|
...st_nlink 3
|
405 |
|
|
...st_uid 0
|
406 |
|
|
...st_gid 0
|
407 |
|
|
...st_rdev (0x0:0x0)
|
408 |
|
|
...st_size 1608
|
409 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
410 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
411 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
412 |
|
|
stat( links/dir2 ) returned
|
413 |
|
|
...st_dev (0x0:0x0)
|
414 |
|
|
...st_ino 4
|
415 |
|
|
...st_mode 40700
|
416 |
|
|
...st_nlink 3
|
417 |
|
|
...st_uid 0
|
418 |
|
|
...st_gid 0
|
419 |
|
|
...st_rdev (0x0:0x0)
|
420 |
|
|
...st_size 0
|
421 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
422 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
423 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
424 |
|
|
stat( links/dir3 ) returned
|
425 |
|
|
...st_dev (0x0:0x0)
|
426 |
|
|
...st_ino 5
|
427 |
|
|
...st_mode 40700
|
428 |
|
|
...st_nlink 3
|
429 |
|
|
...st_uid 0
|
430 |
|
|
...st_gid 0
|
431 |
|
|
...st_rdev (0x0:0x0)
|
432 |
|
|
...st_size 0
|
433 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
434 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
435 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
436 |
|
|
stat( links/dir4 ) returned
|
437 |
|
|
...st_dev (0x0:0x0)
|
438 |
|
|
...st_ino 6
|
439 |
|
|
...st_mode 40700
|
440 |
|
|
...st_nlink 3
|
441 |
|
|
...st_uid 0
|
442 |
|
|
...st_gid 0
|
443 |
|
|
...st_rdev (0x0:0x0)
|
444 |
|
|
...st_size 0
|
445 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
446 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
447 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
448 |
|
|
stat( links/dir1_dir1 ) returned
|
449 |
|
|
...st_dev (0x0:0x0)
|
450 |
|
|
...st_ino 7
|
451 |
|
|
...st_mode 40700
|
452 |
|
|
...st_nlink 3
|
453 |
|
|
...st_uid 0
|
454 |
|
|
...st_gid 0
|
455 |
|
|
...st_rdev (0x0:0x0)
|
456 |
|
|
...st_size 536
|
457 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
458 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
459 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
460 |
|
|
stat( links/dir1_ dir1 ) returned
|
461 |
|
|
...st_dev (0x0:0x0)
|
462 |
|
|
...st_ino 8
|
463 |
|
|
...st_mode 40700
|
464 |
|
|
...st_nlink 3
|
465 |
|
|
...st_uid 0
|
466 |
|
|
...st_gid 0
|
467 |
|
|
...st_rdev (0x0:0x0)
|
468 |
|
|
...st_size 0
|
469 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
470 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
471 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
472 |
|
|
stat( links/../links/../links/links ) returned
|
473 |
|
|
...st_dev (0x0:0x0)
|
474 |
|
|
...st_ino 9
|
475 |
|
|
...st_mode 40700
|
476 |
|
|
...st_nlink 3
|
477 |
|
|
...st_uid 0
|
478 |
|
|
...st_gid 0
|
479 |
|
|
...st_rdev (0x0:0x0)
|
480 |
|
|
...st_size 6968
|
481 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
482 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
483 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
484 |
|
|
stat( links/dir1_file1 ) returned
|
485 |
|
|
...st_dev (0x0:0x0)
|
486 |
|
|
...st_ino b
|
487 |
|
|
...st_mode 100000
|
488 |
|
|
...st_nlink 3
|
489 |
|
|
...st_uid 0
|
490 |
|
|
...st_gid 0
|
491 |
|
|
...st_rdev (0x0:0x0)
|
492 |
|
|
...st_size 0
|
493 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
494 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
495 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
496 |
|
|
stat( links/dir1_file2 ) returned
|
497 |
|
|
...st_dev (0x0:0x0)
|
498 |
|
|
...st_ino c
|
499 |
|
|
...st_mode 100000
|
500 |
|
|
...st_nlink 3
|
501 |
|
|
...st_uid 0
|
502 |
|
|
...st_gid 0
|
503 |
|
|
...st_rdev (0x0:0x0)
|
504 |
|
|
...st_size 0
|
505 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
506 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
507 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
508 |
|
|
stat( links/dir1_file3 ) returned
|
509 |
|
|
...st_dev (0x0:0x0)
|
510 |
|
|
...st_ino d
|
511 |
|
|
...st_mode 100000
|
512 |
|
|
...st_nlink 3
|
513 |
|
|
...st_uid 0
|
514 |
|
|
...st_gid 0
|
515 |
|
|
...st_rdev (0x0:0x0)
|
516 |
|
|
...st_size 0
|
517 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
518 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
519 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
520 |
|
|
stat( links/dir1_file4 ) returned
|
521 |
|
|
...st_dev (0x0:0x0)
|
522 |
|
|
...st_ino e
|
523 |
|
|
...st_mode 100000
|
524 |
|
|
...st_nlink 3
|
525 |
|
|
...st_uid 0
|
526 |
|
|
...st_gid 0
|
527 |
|
|
...st_rdev (0x0:0x0)
|
528 |
|
|
...st_size 0
|
529 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
530 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
531 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
532 |
|
|
stat( links/dir1_dir1_f1 ) returned
|
533 |
|
|
...st_dev (0x0:0x0)
|
534 |
|
|
...st_ino f
|
535 |
|
|
...st_mode 100000
|
536 |
|
|
...st_nlink 3
|
537 |
|
|
...st_uid 0
|
538 |
|
|
...st_gid 0
|
539 |
|
|
...st_rdev (0x0:0x0)
|
540 |
|
|
...st_size 0
|
541 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
542 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
543 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
544 |
|
|
stat( links/dir1_dir1 f1 ) returned
|
545 |
|
|
...st_dev (0x0:0x0)
|
546 |
|
|
...st_ino 10
|
547 |
|
|
...st_mode 100000
|
548 |
|
|
...st_nlink 3
|
549 |
|
|
...st_uid 0
|
550 |
|
|
...st_gid 0
|
551 |
|
|
...st_rdev (0x0:0x0)
|
552 |
|
|
...st_size 0
|
553 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
554 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
555 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
556 |
|
|
stat( links/links/links/links_dir1 ) returned
|
557 |
|
|
...st_dev (0x0:0x0)
|
558 |
|
|
...st_ino 3
|
559 |
|
|
...st_mode 40700
|
560 |
|
|
...st_nlink 3
|
561 |
|
|
...st_uid 0
|
562 |
|
|
...st_gid 0
|
563 |
|
|
...st_rdev (0x0:0x0)
|
564 |
|
|
...st_size 1608
|
565 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
566 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
567 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
568 |
|
|
stat( links//links_dir2 ) returned
|
569 |
|
|
...st_dev (0x0:0x0)
|
570 |
|
|
...st_ino 4
|
571 |
|
|
...st_mode 40700
|
572 |
|
|
...st_nlink 3
|
573 |
|
|
...st_uid 0
|
574 |
|
|
...st_gid 0
|
575 |
|
|
...st_rdev (0x0:0x0)
|
576 |
|
|
...st_size 0
|
577 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
578 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
579 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
580 |
|
|
stat( links//links_dir3 ) returned
|
581 |
|
|
...st_dev (0x0:0x0)
|
582 |
|
|
...st_ino 5
|
583 |
|
|
...st_mode 40700
|
584 |
|
|
...st_nlink 3
|
585 |
|
|
...st_uid 0
|
586 |
|
|
...st_gid 0
|
587 |
|
|
...st_rdev (0x0:0x0)
|
588 |
|
|
...st_size 0
|
589 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
590 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
591 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
592 |
|
|
stat( links//links_dir4 ) returned
|
593 |
|
|
...st_dev (0x0:0x0)
|
594 |
|
|
...st_ino 6
|
595 |
|
|
...st_mode 40700
|
596 |
|
|
...st_nlink 3
|
597 |
|
|
...st_uid 0
|
598 |
|
|
...st_gid 0
|
599 |
|
|
...st_rdev (0x0:0x0)
|
600 |
|
|
...st_size 0
|
601 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
602 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
603 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
604 |
|
|
stat( links//links_dir1_d1 ) returned
|
605 |
|
|
...st_dev (0x0:0x0)
|
606 |
|
|
...st_ino 7
|
607 |
|
|
...st_mode 40700
|
608 |
|
|
...st_nlink 3
|
609 |
|
|
...st_uid 0
|
610 |
|
|
...st_gid 0
|
611 |
|
|
...st_rdev (0x0:0x0)
|
612 |
|
|
...st_size 536
|
613 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
614 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
615 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
616 |
|
|
stat( links//links_dir1 d1 ) returned
|
617 |
|
|
...st_dev (0x0:0x0)
|
618 |
|
|
...st_ino 8
|
619 |
|
|
...st_mode 40700
|
620 |
|
|
...st_nlink 3
|
621 |
|
|
...st_uid 0
|
622 |
|
|
...st_gid 0
|
623 |
|
|
...st_rdev (0x0:0x0)
|
624 |
|
|
...st_size 0
|
625 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
626 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
627 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
628 |
|
|
stat( links//links_links ) returned
|
629 |
|
|
...st_dev (0x0:0x0)
|
630 |
|
|
...st_ino 9
|
631 |
|
|
...st_mode 40700
|
632 |
|
|
...st_nlink 3
|
633 |
|
|
...st_uid 0
|
634 |
|
|
...st_gid 0
|
635 |
|
|
...st_rdev (0x0:0x0)
|
636 |
|
|
...st_size 6968
|
637 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
638 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
639 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
640 |
|
|
stat( links///links_d1_file1 ) returned
|
641 |
|
|
...st_dev (0x0:0x0)
|
642 |
|
|
...st_ino b
|
643 |
|
|
...st_mode 100000
|
644 |
|
|
...st_nlink 3
|
645 |
|
|
...st_uid 0
|
646 |
|
|
...st_gid 0
|
647 |
|
|
...st_rdev (0x0:0x0)
|
648 |
|
|
...st_size 0
|
649 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
650 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
651 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
652 |
|
|
stat( links///links_d1_file2 ) returned
|
653 |
|
|
...st_dev (0x0:0x0)
|
654 |
|
|
...st_ino c
|
655 |
|
|
...st_mode 100000
|
656 |
|
|
...st_nlink 3
|
657 |
|
|
...st_uid 0
|
658 |
|
|
...st_gid 0
|
659 |
|
|
...st_rdev (0x0:0x0)
|
660 |
|
|
...st_size 0
|
661 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
662 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
663 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
664 |
|
|
stat( links///links_d1_file3 ) returned
|
665 |
|
|
...st_dev (0x0:0x0)
|
666 |
|
|
...st_ino d
|
667 |
|
|
...st_mode 100000
|
668 |
|
|
...st_nlink 3
|
669 |
|
|
...st_uid 0
|
670 |
|
|
...st_gid 0
|
671 |
|
|
...st_rdev (0x0:0x0)
|
672 |
|
|
...st_size 0
|
673 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
674 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
675 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
676 |
|
|
stat( links///links_d1_file4 ) returned
|
677 |
|
|
...st_dev (0x0:0x0)
|
678 |
|
|
...st_ino e
|
679 |
|
|
...st_mode 100000
|
680 |
|
|
...st_nlink 3
|
681 |
|
|
...st_uid 0
|
682 |
|
|
...st_gid 0
|
683 |
|
|
...st_rdev (0x0:0x0)
|
684 |
|
|
...st_size 0
|
685 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
686 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
687 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
688 |
|
|
stat( links///links_d1_d1_f1 ) returned
|
689 |
|
|
...st_dev (0x0:0x0)
|
690 |
|
|
...st_ino f
|
691 |
|
|
...st_mode 100000
|
692 |
|
|
...st_nlink 3
|
693 |
|
|
...st_uid 0
|
694 |
|
|
...st_gid 0
|
695 |
|
|
...st_rdev (0x0:0x0)
|
696 |
|
|
...st_size 0
|
697 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
698 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
699 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
700 |
|
|
stat( links///links_r1_d1 f1 ) returned
|
701 |
|
|
...st_dev (0x0:0x0)
|
702 |
|
|
...st_ino 10
|
703 |
|
|
...st_mode 100000
|
704 |
|
|
...st_nlink 3
|
705 |
|
|
...st_uid 0
|
706 |
|
|
...st_gid 0
|
707 |
|
|
...st_rdev (0x0:0x0)
|
708 |
|
|
...st_size 0
|
709 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
710 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
711 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
712 |
|
|
chmod of /my_mount_point/dir1/dir1 to Read/Write
|
713 |
|
|
Doing the stat() on all the bad paths
|
714 |
|
|
stat( /my_mount_point/links/ENAMETOOLONG__________________________ ) returned : File or path name too long
|
715 |
|
|
stat( /my_mount_point/dir1/file4/NOTADIR ) returned : Not a directory
|
716 |
|
|
stat( /my_mount_point/dir1/dir1/EACCES__ ) returned : Permission denied
|
717 |
|
|
Making file /my_mount_point/links/ENAMETOOLONG__________________________ : File or path name too long
|
718 |
|
|
Making file /my_mount_point/dir1/file4/NOTADIR : Not a directory
|
719 |
|
|
Making file /my_mount_point/dir1/dir1/EACCES__ : Permission denied
|
720 |
|
|
Return /my_mount_point/dir1/dir1 to RWX
|
721 |
|
|
Making file /my_mount_point/symlinks/a_file_symlink
|
722 |
|
|
Verify with readlink
|
723 |
|
|
Making file /my_mount_point/symlinks/a_dir_symlink
|
724 |
|
|
Verify with readlink
|
725 |
|
|
Making file /my_mount_point/symlinks/a_link_symlink
|
726 |
|
|
Verify with readlink
|
727 |
|
|
Making file ../symlinks/no_file
|
728 |
|
|
Verify with readlink
|
729 |
|
|
Making file /my_mount_point/symlinks/a_dir_symlink/a_file_symlink
|
730 |
|
|
Verify with readlink
|
731 |
|
|
Making file /my_mount_point/symlinks/links
|
732 |
|
|
Verify with readlink
|
733 |
|
|
stat( /my_mount_point/symlinks/a_file_symlink ) returned
|
734 |
|
|
...st_dev (0x0:0x0)
|
735 |
|
|
...st_ino b
|
736 |
|
|
...st_mode 100000
|
737 |
|
|
...st_nlink 3
|
738 |
|
|
...st_uid 0
|
739 |
|
|
...st_gid 0
|
740 |
|
|
...st_rdev (0x0:0x0)
|
741 |
|
|
...st_size 0
|
742 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
743 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
744 |
|
|
...st_ctime Sat Dec 31 09:00:10 1988
|
745 |
|
|
stat( /my_mount_point/symlinks/a_dir_symlink ) returned
|
746 |
|
|
...st_dev (0x0:0x0)
|
747 |
|
|
...st_ino 3
|
748 |
|
|
...st_mode 40700
|
749 |
|
|
...st_nlink 3
|
750 |
|
|
...st_uid 0
|
751 |
|
|
...st_gid 0
|
752 |
|
|
...st_rdev (0x0:0x0)
|
753 |
|
|
...st_size 1876
|
754 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
755 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
756 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
757 |
|
|
stat( /my_mount_point/symlinks/a_link_symlink ) returned
|
758 |
|
|
...st_dev (0x0:0x0)
|
759 |
|
|
...st_ino 3
|
760 |
|
|
...st_mode 40700
|
761 |
|
|
...st_nlink 3
|
762 |
|
|
...st_uid 0
|
763 |
|
|
...st_gid 0
|
764 |
|
|
...st_rdev (0x0:0x0)
|
765 |
|
|
...st_size 1876
|
766 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
767 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
768 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
769 |
|
|
stat( ../symlinks/no_file ) returned : No such file or directory
|
770 |
|
|
stat( /my_mount_point/symlinks/a_dir_symlink/a_file_symlink ) returned
|
771 |
|
|
...st_dev (0x0:0x0)
|
772 |
|
|
...st_ino 3
|
773 |
|
|
...st_mode 40700
|
774 |
|
|
...st_nlink 3
|
775 |
|
|
...st_uid 0
|
776 |
|
|
...st_gid 0
|
777 |
|
|
...st_rdev (0x0:0x0)
|
778 |
|
|
...st_size 1876
|
779 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
780 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
781 |
|
|
...st_ctime Sat Dec 31 09:00:05 1988
|
782 |
|
|
Making file 1
|
783 |
|
|
Verify with readlink
|
784 |
|
|
Making file 2
|
785 |
|
|
Verify with readlink
|
786 |
|
|
Making file 3
|
787 |
|
|
Verify with readlink
|
788 |
|
|
Making file 4
|
789 |
|
|
Verify with readlink
|
790 |
|
|
Making file 5
|
791 |
|
|
Verify with readlink
|
792 |
|
|
Making file 6
|
793 |
|
|
Verify with readlink
|
794 |
|
|
Making file 7
|
795 |
|
|
Verify with readlink
|
796 |
|
|
Making file 8
|
797 |
|
|
Verify with readlink
|
798 |
|
|
Making file 9
|
799 |
|
|
Verify with readlink
|
800 |
|
|
stat( 1 ) returned : No such file or directory
|
801 |
|
|
stat( 2 ) returned : No such file or directory
|
802 |
|
|
stat( 3 ) returned : No such file or directory
|
803 |
|
|
stat( 4 ) returned : No such file or directory
|
804 |
|
|
stat( 5 ) returned : No such file or directory
|
805 |
|
|
stat( 6 ) returned : Too many symbolic links
|
806 |
|
|
stat( 7 ) returned : Too many symbolic links
|
807 |
|
|
stat( 8 ) returned : Too many symbolic links
|
808 |
|
|
stat( 9 ) returned : Too many symbolic links
|
809 |
|
|
Pass an invalid mode to chmod should fail with EPERM
|
810 |
|
|
chdir to a file should fail with ENOTDIR
|
811 |
|
|
Verify RWX permission on /my_mount_point/dir1 via access
|
812 |
|
|
chmod of /my_mount_point/dir1 to Read/Write
|
813 |
|
|
chmod fred should fail with ENOENT
|
814 |
|
|
Create under /my_mount_point/dir1 should fail with EACCES
|
815 |
|
|
chdir to /my_mount_point/dir1/dir1 should fail with EACCES
|
816 |
|
|
Stat with a NULL buffer should fail with EFAULT
|
817 |
|
|
chmod of /my_mount_point/dir1 to Read/Write
|
818 |
|
|
mkdir /my_mount_point/dir1/BADNAME should fail with EACCESS
|
819 |
|
|
/my_mount_point/dir1 Should exist ( access )
|
820 |
|
|
/my_mount_point/dir1 Should have read permission( access )
|
821 |
|
|
/my_mount_point/dir1 Should have write permission( access )
|
822 |
|
|
/my_mount_point/dir1 Should not have execute permission( access )
|
823 |
|
|
Restore /my_mount_point/dir1 to RWX
|
824 |
|
|
chdir to /my_mount_point
|
825 |
|
|
Remove /./././my_mount_point/dir1/ dir1
|
826 |
|
|
stat( /./././my_mount_point/dir1/ dir1 ) returned : No such file or directory
|
827 |
|
|
stat( links/dir1_ dir1 ) returned
|
828 |
|
|
...st_dev (0x0:0x0)
|
829 |
|
|
...st_ino 8
|
830 |
|
|
...st_mode 40700
|
831 |
|
|
...st_nlink 2
|
832 |
|
|
...st_uid 0
|
833 |
|
|
...st_gid 0
|
834 |
|
|
...st_rdev (0x0:0x0)
|
835 |
|
|
...st_size 0
|
836 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
837 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
838 |
|
|
...st_ctime Sat Dec 31 09:00:20 1988
|
839 |
|
|
stat( links//links_dir1 d1 ) returned
|
840 |
|
|
...st_dev (0x0:0x0)
|
841 |
|
|
...st_ino 8
|
842 |
|
|
...st_mode 40700
|
843 |
|
|
...st_nlink 2
|
844 |
|
|
...st_uid 0
|
845 |
|
|
...st_gid 0
|
846 |
|
|
...st_rdev (0x0:0x0)
|
847 |
|
|
...st_size 0
|
848 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
849 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
850 |
|
|
...st_ctime Sat Dec 31 09:00:20 1988
|
851 |
|
|
Chdir to links/dir1_ dir1
|
852 |
|
|
Chdir to .. should fail with ENOENT
|
853 |
|
|
mkdir ../t should fail with ENOENT
|
854 |
|
|
mkdir t
|
855 |
|
|
chdir to /my_mount_point
|
856 |
|
|
rmdir links/dir1_ dir1 should fail with ENOTDIR
|
857 |
|
|
unlink links/dir1_ dir1
|
858 |
|
|
unlink links//links_dir1 d1 should fail with ENOTEMPTY
|
859 |
|
|
rmdir links//links_dir1 d1/t
|
860 |
|
|
unlink links/dir1_ dir1
|
861 |
|
|
Attempting to mount IMFS file system at /dir1/my_mount_point
|
862 |
|
|
rmdir /dir1/my_mount_point should fail with EBUSY
|
863 |
|
|
Unmount /my_mount_point/dir1/my_mount_point
|
864 |
|
|
chmod of /////my_mount_point/dir1/\//file1\\// to group and other execute
|
865 |
|
|
Open /////my_mount_point/dir1/\//file1\\// for write should fail with EACCES
|
866 |
|
|
chmod of /my_mount_point/dir4 to User Execute and Read
|
867 |
|
|
Mkdir of /my_mount_point/dir4/NewFile should fail with EACCES
|
868 |
|
|
Making too many hard links.
|
869 |
|
|
Making file /LinkName1
|
870 |
|
|
Making file /LinkName2
|
871 |
|
|
Making file /LinkName3
|
872 |
|
|
Making file /LinkName4
|
873 |
|
|
Making file /LinkName5
|
874 |
|
|
Making file /LinkName6
|
875 |
|
|
Making file /LinkName7
|
876 |
|
|
Making file /LinkName8
|
877 |
|
|
pass fstat a null pointer should fail with EFAULT
|
878 |
|
|
chdir to /my_mount_point
|
879 |
|
|
Change group of /////my_mount_point/dir1/\//file1\\//
|
880 |
|
|
stat( /////my_mount_point/dir1/\//file1\\// ) returned
|
881 |
|
|
...st_dev (0x0:0x0)
|
882 |
|
|
...st_ino b
|
883 |
|
|
...st_mode 100011
|
884 |
|
|
...st_nlink 3
|
885 |
|
|
...st_uid 0
|
886 |
|
|
...st_gid 1
|
887 |
|
|
...st_rdev (0x0:0x0)
|
888 |
|
|
...st_size 0
|
889 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
890 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
891 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
892 |
|
|
Change owner of /////my_mount_point/dir1/\//file1\\//
|
893 |
|
|
stat( /////my_mount_point/dir1/\//file1\\// ) returned
|
894 |
|
|
...st_dev (0x0:0x0)
|
895 |
|
|
...st_ino b
|
896 |
|
|
...st_mode 100011
|
897 |
|
|
...st_nlink 3
|
898 |
|
|
...st_uid 1
|
899 |
|
|
...st_gid 0
|
900 |
|
|
...st_rdev (0x0:0x0)
|
901 |
|
|
...st_size 0
|
902 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
903 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
904 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
905 |
|
|
Change group of /my_mount_point/dir1/file2
|
906 |
|
|
stat( /my_mount_point/dir1/file2 ) returned
|
907 |
|
|
...st_dev (0x0:0x0)
|
908 |
|
|
...st_ino c
|
909 |
|
|
...st_mode 100000
|
910 |
|
|
...st_nlink 3
|
911 |
|
|
...st_uid 0
|
912 |
|
|
...st_gid 1
|
913 |
|
|
...st_rdev (0x0:0x0)
|
914 |
|
|
...st_size 0
|
915 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
916 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
917 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
918 |
|
|
Change owner of /my_mount_point/dir1/file2
|
919 |
|
|
stat( /my_mount_point/dir1/file2 ) returned
|
920 |
|
|
...st_dev (0x0:0x0)
|
921 |
|
|
...st_ino c
|
922 |
|
|
...st_mode 100000
|
923 |
|
|
...st_nlink 3
|
924 |
|
|
...st_uid 1
|
925 |
|
|
...st_gid 0
|
926 |
|
|
...st_rdev (0x0:0x0)
|
927 |
|
|
...st_size 0
|
928 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
929 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
930 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
931 |
|
|
Change group of /my_mount_point/dir1/file3
|
932 |
|
|
stat( /my_mount_point/dir1/file3 ) returned
|
933 |
|
|
...st_dev (0x0:0x0)
|
934 |
|
|
...st_ino d
|
935 |
|
|
...st_mode 100000
|
936 |
|
|
...st_nlink 3
|
937 |
|
|
...st_uid 0
|
938 |
|
|
...st_gid 1
|
939 |
|
|
...st_rdev (0x0:0x0)
|
940 |
|
|
...st_size 0
|
941 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
942 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
943 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
944 |
|
|
Change owner of /my_mount_point/dir1/file3
|
945 |
|
|
stat( /my_mount_point/dir1/file3 ) returned
|
946 |
|
|
...st_dev (0x0:0x0)
|
947 |
|
|
...st_ino d
|
948 |
|
|
...st_mode 100000
|
949 |
|
|
...st_nlink 3
|
950 |
|
|
...st_uid 1
|
951 |
|
|
...st_gid 0
|
952 |
|
|
...st_rdev (0x0:0x0)
|
953 |
|
|
...st_size 0
|
954 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
955 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
956 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
957 |
|
|
Change group of /my_mount_point/dir1/file4
|
958 |
|
|
stat( /my_mount_point/dir1/file4 ) returned
|
959 |
|
|
...st_dev (0x0:0x0)
|
960 |
|
|
...st_ino e
|
961 |
|
|
...st_mode 100000
|
962 |
|
|
...st_nlink 3
|
963 |
|
|
...st_uid 0
|
964 |
|
|
...st_gid 1
|
965 |
|
|
...st_rdev (0x0:0x0)
|
966 |
|
|
...st_size 0
|
967 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
968 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
969 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
970 |
|
|
Change owner of /my_mount_point/dir1/file4
|
971 |
|
|
stat( /my_mount_point/dir1/file4 ) returned
|
972 |
|
|
...st_dev (0x0:0x0)
|
973 |
|
|
...st_ino e
|
974 |
|
|
...st_mode 100000
|
975 |
|
|
...st_nlink 3
|
976 |
|
|
...st_uid 1
|
977 |
|
|
...st_gid 0
|
978 |
|
|
...st_rdev (0x0:0x0)
|
979 |
|
|
...st_size 0
|
980 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
981 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
982 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
983 |
|
|
Change group of /my_mount_point/dir1/dir1/file1
|
984 |
|
|
stat( /my_mount_point/dir1/dir1/file1 ) returned
|
985 |
|
|
...st_dev (0x0:0x0)
|
986 |
|
|
...st_ino f
|
987 |
|
|
...st_mode 100000
|
988 |
|
|
...st_nlink 3
|
989 |
|
|
...st_uid 0
|
990 |
|
|
...st_gid 1
|
991 |
|
|
...st_rdev (0x0:0x0)
|
992 |
|
|
...st_size 0
|
993 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
994 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
995 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
996 |
|
|
Change owner of /my_mount_point/dir1/dir1/file1
|
997 |
|
|
stat( /my_mount_point/dir1/dir1/file1 ) returned
|
998 |
|
|
...st_dev (0x0:0x0)
|
999 |
|
|
...st_ino f
|
1000 |
|
|
...st_mode 100000
|
1001 |
|
|
...st_nlink 3
|
1002 |
|
|
...st_uid 1
|
1003 |
|
|
...st_gid 0
|
1004 |
|
|
...st_rdev (0x0:0x0)
|
1005 |
|
|
...st_size 0
|
1006 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1007 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1008 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
1009 |
|
|
Change group of ../../..//my_mount_point/dir1/./././dir1/ file1
|
1010 |
|
|
stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
|
1011 |
|
|
...st_dev (0x0:0x0)
|
1012 |
|
|
...st_ino 10
|
1013 |
|
|
...st_mode 100000
|
1014 |
|
|
...st_nlink 3
|
1015 |
|
|
...st_uid 0
|
1016 |
|
|
...st_gid 1
|
1017 |
|
|
...st_rdev (0x0:0x0)
|
1018 |
|
|
...st_size 0
|
1019 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1020 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1021 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
1022 |
|
|
Change owner of ../../..//my_mount_point/dir1/./././dir1/ file1
|
1023 |
|
|
stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
|
1024 |
|
|
...st_dev (0x0:0x0)
|
1025 |
|
|
...st_ino 10
|
1026 |
|
|
...st_mode 100000
|
1027 |
|
|
...st_nlink 3
|
1028 |
|
|
...st_uid 1
|
1029 |
|
|
...st_gid 0
|
1030 |
|
|
...st_rdev (0x0:0x0)
|
1031 |
|
|
...st_size 0
|
1032 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1033 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1034 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
1035 |
|
|
Change group of main.c
|
1036 |
|
|
stat( main.c ) returned
|
1037 |
|
|
...st_dev (0x0:0x0)
|
1038 |
|
|
...st_ino 11
|
1039 |
|
|
...st_mode 100000
|
1040 |
|
|
...st_nlink 1
|
1041 |
|
|
...st_uid 0
|
1042 |
|
|
...st_gid 1
|
1043 |
|
|
...st_rdev (0x0:0x0)
|
1044 |
|
|
...st_size 0
|
1045 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1046 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1047 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
1048 |
|
|
Change owner of main.c
|
1049 |
|
|
stat( main.c ) returned
|
1050 |
|
|
...st_dev (0x0:0x0)
|
1051 |
|
|
...st_ino 11
|
1052 |
|
|
...st_mode 100000
|
1053 |
|
|
...st_nlink 1
|
1054 |
|
|
...st_uid 1
|
1055 |
|
|
...st_gid 0
|
1056 |
|
|
...st_rdev (0x0:0x0)
|
1057 |
|
|
...st_size 0
|
1058 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1059 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1060 |
|
|
...st_ctime Sat Dec 31 09:00:25 1988
|
1061 |
|
|
Change group of dir1/dir1/../../links/dir1
|
1062 |
|
|
stat( dir1/dir1/../../links/dir1 ) returned
|
1063 |
|
|
...st_dev (0x0:0x0)
|
1064 |
|
|
...st_ino 3
|
1065 |
|
|
...st_mode 40700
|
1066 |
|
|
...st_nlink 3
|
1067 |
|
|
...st_uid 0
|
1068 |
|
|
...st_gid 1
|
1069 |
|
|
...st_rdev (0x0:0x0)
|
1070 |
|
|
...st_size 1876
|
1071 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1072 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1073 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1074 |
|
|
Change owner of dir1/dir1/../../links/dir1
|
1075 |
|
|
stat( dir1/dir1/../../links/dir1 ) returned : Permission denied
|
1076 |
|
|
Change group of links/dir2
|
1077 |
|
|
stat( links/dir2 ) returned
|
1078 |
|
|
...st_dev (0x0:0x0)
|
1079 |
|
|
...st_ino 4
|
1080 |
|
|
...st_mode 40700
|
1081 |
|
|
...st_nlink 3
|
1082 |
|
|
...st_uid 0
|
1083 |
|
|
...st_gid 1
|
1084 |
|
|
...st_rdev (0x0:0x0)
|
1085 |
|
|
...st_size 0
|
1086 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1087 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1088 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1089 |
|
|
Change owner of links/dir2
|
1090 |
|
|
stat( links/dir2 ) returned
|
1091 |
|
|
...st_dev (0x0:0x0)
|
1092 |
|
|
...st_ino 4
|
1093 |
|
|
...st_mode 40700
|
1094 |
|
|
...st_nlink 3
|
1095 |
|
|
...st_uid 1
|
1096 |
|
|
...st_gid 0
|
1097 |
|
|
...st_rdev (0x0:0x0)
|
1098 |
|
|
...st_size 0
|
1099 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1100 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1101 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1102 |
|
|
Change group of links/dir3
|
1103 |
|
|
stat( links/dir3 ) returned
|
1104 |
|
|
...st_dev (0x0:0x0)
|
1105 |
|
|
...st_ino 5
|
1106 |
|
|
...st_mode 40700
|
1107 |
|
|
...st_nlink 3
|
1108 |
|
|
...st_uid 0
|
1109 |
|
|
...st_gid 1
|
1110 |
|
|
...st_rdev (0x0:0x0)
|
1111 |
|
|
...st_size 0
|
1112 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1113 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1114 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1115 |
|
|
Change owner of links/dir3
|
1116 |
|
|
stat( links/dir3 ) returned
|
1117 |
|
|
...st_dev (0x0:0x0)
|
1118 |
|
|
...st_ino 5
|
1119 |
|
|
...st_mode 40700
|
1120 |
|
|
...st_nlink 3
|
1121 |
|
|
...st_uid 1
|
1122 |
|
|
...st_gid 0
|
1123 |
|
|
...st_rdev (0x0:0x0)
|
1124 |
|
|
...st_size 0
|
1125 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1126 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1127 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1128 |
|
|
Change group of links/dir4
|
1129 |
|
|
stat( links/dir4 ) returned
|
1130 |
|
|
...st_dev (0x0:0x0)
|
1131 |
|
|
...st_ino 6
|
1132 |
|
|
...st_mode 40500
|
1133 |
|
|
...st_nlink 3
|
1134 |
|
|
...st_uid 0
|
1135 |
|
|
...st_gid 1
|
1136 |
|
|
...st_rdev (0x0:0x0)
|
1137 |
|
|
...st_size 0
|
1138 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1139 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1140 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1141 |
|
|
Change owner of links/dir4
|
1142 |
|
|
stat( links/dir4 ) returned
|
1143 |
|
|
...st_dev (0x0:0x0)
|
1144 |
|
|
...st_ino 6
|
1145 |
|
|
...st_mode 40500
|
1146 |
|
|
...st_nlink 3
|
1147 |
|
|
...st_uid 1
|
1148 |
|
|
...st_gid 0
|
1149 |
|
|
...st_rdev (0x0:0x0)
|
1150 |
|
|
...st_size 0
|
1151 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1152 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1153 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1154 |
|
|
Change group of links/dir1_dir1
|
1155 |
|
|
stat( links/dir1_dir1 ) returned
|
1156 |
|
|
...st_dev (0x0:0x0)
|
1157 |
|
|
...st_ino 7
|
1158 |
|
|
...st_mode 40700
|
1159 |
|
|
...st_nlink 3
|
1160 |
|
|
...st_uid 0
|
1161 |
|
|
...st_gid 1
|
1162 |
|
|
...st_rdev (0x0:0x0)
|
1163 |
|
|
...st_size 536
|
1164 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1165 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1166 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1167 |
|
|
Change owner of links/dir1_dir1
|
1168 |
|
|
stat( links/dir1_dir1 ) returned
|
1169 |
|
|
...st_dev (0x0:0x0)
|
1170 |
|
|
...st_ino 7
|
1171 |
|
|
...st_mode 40700
|
1172 |
|
|
...st_nlink 3
|
1173 |
|
|
...st_uid 1
|
1174 |
|
|
...st_gid 0
|
1175 |
|
|
...st_rdev (0x0:0x0)
|
1176 |
|
|
...st_size 536
|
1177 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1178 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1179 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1180 |
|
|
Change group of links/dir1_ dir1
|
1181 |
|
|
stat( links/dir1_ dir1 ) returned : No such file or directory
|
1182 |
|
|
Change owner of links/dir1_ dir1
|
1183 |
|
|
stat( links/dir1_ dir1 ) returned : No such file or directory
|
1184 |
|
|
Change group of links/../links/../links/links
|
1185 |
|
|
stat( links/../links/../links/links ) returned
|
1186 |
|
|
...st_dev (0x0:0x0)
|
1187 |
|
|
...st_ino 9
|
1188 |
|
|
...st_mode 40700
|
1189 |
|
|
...st_nlink 3
|
1190 |
|
|
...st_uid 0
|
1191 |
|
|
...st_gid 1
|
1192 |
|
|
...st_rdev (0x0:0x0)
|
1193 |
|
|
...st_size 8844
|
1194 |
|
|
...st_atime Sat Dec 31 09:00:00 1988
|
1195 |
|
|
...st_mtime Sat Dec 31 09:00:00 1988
|
1196 |
|
|
...st_ctime Sat Dec 31 09:00:30 1988
|
1197 |
|
|
Change owner of links/../links/../links/links
|
1198 |
|
|
stat( links/../links/../links/links ) returned : Permission denied
|
1199 |
|
|
*** END OF STAT TEST 01 ***
|