source: rtems/testsuites/psxtests/psxstat/psxstat.scn @ cbbc55ef

4.104.11
Last change on this file since cbbc55ef was cbbc55ef, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 18, 2009 at 4:19:53 PM

2009-06-18 Joel Sherrill <joel.sherrill@…>

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