Changeset 2e3ce06 in rtems


Ignore:
Timestamp:
Nov 17, 2000, 9:29:31 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bde7e18e
Parents:
1e566bbb
Message:

2000-11-17 Jennifer Averret <jennifer@…>

  • psxmount/test.c, psxmount/psxmount.scn: Improve output to report expected error condition in one case.
  • psxreaddir/test.c, psxreaddir.scn: Added test cases to exercise readdir() of root of mounted filesystem. Also corrected the screen file for some mistakes noticed in this effort.
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxstat/psxstat.scn

    r1e566bbb r2e3ce06  
    1 
    2 
    31*** STAT TEST 01 ***
    42>>>>Current Time:  - rtems_clock_get - 09:00:00   12/31/1988
    5 Making directory /dir1
    6 Making directory /dir2
    7 Making directory /dir3
    8 Making directory /dir4
    9 Making directory /dir1/dir1
    10 Making directory /./././dir1/ dir1
    11 Making directory /./././links
    12 Making directory ///dir1/dir1/../../dir1/../symlinks/////
    13 Making file ////dir1///file1\//
    14 Making file /dir1/file2
    15 Making file /dir1/file3
    16 Making file /dir1/file4
    17 Making file /dir1/dir1/file1
    18 Making file ../../..//dir1/./././dir1/ file1
     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/////
     11Making file /////my_mount_point/dir1///file1\//
     12Making file /my_mount_point/dir1/file2
     13Making file /my_mount_point/dir1/file3
     14Making file /my_mount_point/dir1/file4
     15Making file /my_mount_point/dir1/dir1/file1
     16Making file ../../..//my_mount_point/dir1/./././dir1/ file1
    1917Making file main.c
    2018Making file dir1/dir1/../../links/dir1
     
    4543Making file links///links_r1_d1 f1
    4644Doing the stat() on all the good absolute paths
    47 stat( /dev ) returned
    48 st_dev     (0x0:0x0)
    49 ...st_ino     2         ( May vary slightly )
    50 ...st_mode    40771
     45stat( /my_mount_point/dev ) returned
     46st_dev     (0x0:0x0)
     47...st_ino     2
     48...st_mode    40700
    5149...st_nlink   1
    5250...st_uid     0
    5351...st_gid     0
    5452...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
     57stat( ////my_mount_point/dir1///file1\// ) returned
     58st_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
     69stat( /my_mount_point/dir1/\/file2 ) returned
     70st_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
     81stat( /my_mount_point/dir1/file3/////\ ) returned
     82st_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
     93stat( /my_mount_point/dir1/file4 ) returned
     94st_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
     105stat( /my_mount_point/dir1/dir1/file1 ) returned
     106st_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
     117stat( /my_mount_point/dir1/dir1/ file1 ) returned
     118st_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
     129stat( /my_mount_point/dir1 ) returned
     130st_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
     141stat( /my_mount_point/dir2////// ) returned
     142st_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
     153stat( /my_mount_point/dir3 ) returned
     154st_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
     165stat( /my_mount_point/dir4 ) returned
     166st_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
     177stat( /my_mount_point/dir1/dir1 ) returned
     178st_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)
    55185...st_size    536
    56 ...st_atime   Fri Jan 01 00:00:00 1988
    57 ...st_mtime   Fri Jan 01 00:00:00 1988
    58 ...st_ctime   Fri Jan 01 00:00:00 1988
    59 stat( ////dir1///file1\// ) returned
    60 st_dev     (0x0:0x0)
    61 ...st_ino     d         ( May vary slightly )
    62 ...st_mode    100000
    63 ...st_nlink   3
    64 ...st_uid     0
    65 ...st_gid     0
    66 ...st_rdev    (0x0:0x0)
    67 ...st_size    0
    68 ...st_atime   Sat Dec 31 09:00:00 1988
    69 ...st_mtime   Sat Dec 31 09:00:00 1988
    70 ...st_ctime   Sat Dec 31 09:00:10 1988
    71 stat( /dir1/\/file2 ) returned
    72 st_dev     (0x0:0x0)
    73 ...st_ino     e         ( May vary slightly )
    74 ...st_mode    100000
    75 ...st_nlink   3
    76 ...st_uid     0
    77 ...st_gid     0
    78 ...st_rdev    (0x0:0x0)
    79 ...st_size    0
    80 ...st_atime   Sat Dec 31 09:00:00 1988
    81 ...st_mtime   Sat Dec 31 09:00:00 1988
    82 ...st_ctime   Sat Dec 31 09:00:10 1988
    83 stat( /dir1/file3/////\ ) returned
    84 st_dev     (0x0:0x0)
    85 ...st_ino     f         ( May vary slightly )
    86 ...st_mode    100000
    87 ...st_nlink   3
    88 ...st_uid     0
    89 ...st_gid     0
    90 ...st_rdev    (0x0:0x0)
    91 ...st_size    0
    92 ...st_atime   Sat Dec 31 09:00:00 1988
    93 ...st_mtime   Sat Dec 31 09:00:00 1988
    94 ...st_ctime   Sat Dec 31 09:00:10 1988
    95 stat( /dir1/file4 ) returned
    96 st_dev     (0x0:0x0)
    97 ...st_ino     10         ( May vary slightly )
    98 ...st_mode    100000
    99 ...st_nlink   3
    100 ...st_uid     0
    101 ...st_gid     0
    102 ...st_rdev    (0x0:0x0)
    103 ...st_size    0
    104 ...st_atime   Sat Dec 31 09:00:00 1988
    105 ...st_mtime   Sat Dec 31 09:00:00 1988
    106 ...st_ctime   Sat Dec 31 09:00:10 1988
    107 stat( /dir1/dir1/file1 ) returned
    108 st_dev     (0x0:0x0)
    109 ...st_ino     11         ( May vary slightly )
    110 ...st_mode    100000
    111 ...st_nlink   3
    112 ...st_uid     0
    113 ...st_gid     0
    114 ...st_rdev    (0x0:0x0)
    115 ...st_size    0
    116 ...st_atime   Sat Dec 31 09:00:00 1988
    117 ...st_mtime   Sat Dec 31 09:00:00 1988
    118 ...st_ctime   Sat Dec 31 09:00:10 1988
    119 stat( /dir1/dir1/ file1 ) returned
    120 st_dev     (0x0:0x0)
    121 ...st_ino     12         ( May vary slightly )
    122 ...st_mode    100000
    123 ...st_nlink   3
    124 ...st_uid     0
    125 ...st_gid     0
    126 ...st_rdev    (0x0:0x0)
    127 ...st_size    0
    128 ...st_atime   Sat Dec 31 09:00:00 1988
    129 ...st_mtime   Sat Dec 31 09:00:00 1988
    130 ...st_ctime   Sat Dec 31 09:00:10 1988
    131 stat( /dir1 ) returned
    132 st_dev     (0x0:0x0)
    133 ...st_ino     5         ( May vary slightly )
    134 ...st_mode    40700
    135 ...st_nlink   3
    136 ...st_uid     0
    137 ...st_gid     0
    138 ...st_rdev    (0x0:0x0)
    139 ...st_size    1608
    140 ...st_atime   Sat Dec 31 09:00:00 1988
    141 ...st_mtime   Sat Dec 31 09:00:00 1988
    142 ...st_ctime   Sat Dec 31 09:00:05 1988
    143 stat( /dir2////// ) returned
    144 st_dev     (0x0:0x0)
    145 ...st_ino     6         ( May vary slightly )
    146 ...st_mode    40700
    147 ...st_nlink   3
    148 ...st_uid     0
    149 ...st_gid     0
    150 ...st_rdev    (0x0:0x0)
    151 ...st_size    0
    152 ...st_atime   Sat Dec 31 09:00:00 1988
    153 ...st_mtime   Sat Dec 31 09:00:00 1988
    154 ...st_ctime   Sat Dec 31 09:00:05 1988
    155 stat( /dir3 ) returned
    156 st_dev     (0x0:0x0)
    157 ...st_ino     7         ( May vary slightly )
    158 ...st_mode    40700
    159 ...st_nlink   3
    160 ...st_uid     0
    161 ...st_gid     0
    162 ...st_rdev    (0x0:0x0)
    163 ...st_size    0
    164 ...st_atime   Sat Dec 31 09:00:00 1988
    165 ...st_mtime   Sat Dec 31 09:00:00 1988
    166 ...st_ctime   Sat Dec 31 09:00:05 1988
    167 stat( /dir4 ) returned
    168 st_dev     (0x0:0x0)
    169 ...st_ino     8         ( May vary slightly )
    170 ...st_mode    40700
    171 ...st_nlink   3
    172 ...st_uid     0
    173 ...st_gid     0
    174 ...st_rdev    (0x0:0x0)
    175 ...st_size    0
    176 ...st_atime   Sat Dec 31 09:00:00 1988
    177 ...st_mtime   Sat Dec 31 09:00:00 1988
    178 ...st_ctime   Sat Dec 31 09:00:05 1988
    179 stat( /dir1/dir1 ) returned
    180 st_dev     (0x0:0x0)
    181 ...st_ino     9         ( May vary slightly )
    182 ...st_mode    40700
    183 ...st_nlink   3
    184 ...st_uid     0
    185 ...st_gid     0
    186 ...st_rdev    (0x0:0x0)
    187 ...st_size    536
    188 ...st_atime   Sat Dec 31 09:00:00 1988
    189 ...st_mtime   Sat Dec 31 09:00:00 1988
    190 ...st_ctime   Sat Dec 31 09:00:05 1988
    191 stat( /dir1/ dir1///\ ) returned
    192 st_dev     (0x0:0x0)
    193 ...st_ino     a         ( May vary slightly )
    194 ...st_mode    40700
    195 ...st_nlink   3
    196 ...st_uid     0
    197 ...st_gid     0
    198 ...st_rdev    (0x0:0x0)
    199 ...st_size    0
    200 ...st_atime   Sat Dec 31 09:00:00 1988
    201 ...st_mtime   Sat Dec 31 09:00:00 1988
    202 ...st_ctime   Sat Dec 31 09:00:05 1988
    203 stat( ///////links///// ) returned
    204 st_dev     (0x0:0x0)
    205 ...st_ino     b         ( May vary slightly )
     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
     189stat( /my_mount_point/dir1/ dir1///\ ) returned
     190st_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
     201stat( /my_mount_point///////links///// ) returned
     202st_dev     (0x0:0x0)
     203...st_ino     9
    206204...st_mode    40700
    207205...st_nlink   3
     
    216214stat( dev ) returned
    217215st_dev     (0x0:0x0)
    218 ...st_ino     2         ( May vary slightly )
    219 ...st_mode    40771
     216...st_ino     2
     217...st_mode    40700
    220218...st_nlink   1
    221219...st_uid     0
    222220...st_gid     0
    223221...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
     226stat( dir1///file1\// ) returned
     227st_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
     238stat( dir1/\/file2 ) returned
     239st_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
     250stat( dir1/file3/////\ ) returned
     251st_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
     262stat( dir1/file4 ) returned
     263st_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
     274stat( dir1/dir1/file1 ) returned
     275st_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
     286stat( dir1/dir1/ file1 ) returned
     287st_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
     298stat( dir1 ) returned
     299st_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
     310stat( dir2////// ) returned
     311st_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
     322stat( dir3 ) returned
     323st_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
     334stat( dir4 ) returned
     335st_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
     346stat( dir1/dir1 ) returned
     347st_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)
    224354...st_size    536
    225 ...st_atime   Fri Jan 01 00:00:00 1988
    226 ...st_mtime   Fri Jan 01 00:00:00 1988
    227 ...st_ctime   Fri Jan 01 00:00:00 1988
    228 stat( dir1///file1\// ) returned
    229 st_dev     (0x0:0x0)
    230 ...st_ino     d         ( May vary slightly )
    231 ...st_mode    100000
    232 ...st_nlink   3
    233 ...st_uid     0
    234 ...st_gid     0
    235 ...st_rdev    (0x0:0x0)
    236 ...st_size    0
    237 ...st_atime   Sat Dec 31 09:00:00 1988
    238 ...st_mtime   Sat Dec 31 09:00:00 1988
    239 ...st_ctime   Sat Dec 31 09:00:10 1988
    240 stat( dir1/\/file2 ) returned
    241 st_dev     (0x0:0x0)
    242 ...st_ino     e         ( May vary slightly )
    243 ...st_mode    100000
    244 ...st_nlink   3
    245 ...st_uid     0
    246 ...st_gid     0
    247 ...st_rdev    (0x0:0x0)
    248 ...st_size    0
    249 ...st_atime   Sat Dec 31 09:00:00 1988
    250 ...st_mtime   Sat Dec 31 09:00:00 1988
    251 ...st_ctime   Sat Dec 31 09:00:10 1988
    252 stat( dir1/file3/////\ ) returned
    253 st_dev     (0x0:0x0)
    254 ...st_ino     f         ( May vary slightly )
    255 ...st_mode    100000
    256 ...st_nlink   3
    257 ...st_uid     0
    258 ...st_gid     0
    259 ...st_rdev    (0x0:0x0)
    260 ...st_size    0
    261 ...st_atime   Sat Dec 31 09:00:00 1988
    262 ...st_mtime   Sat Dec 31 09:00:00 1988
    263 ...st_ctime   Sat Dec 31 09:00:10 1988
    264 stat( dir1/file4 ) returned
    265 st_dev     (0x0:0x0)
    266 ...st_ino     10         ( May vary slightly )
    267 ...st_mode    100000
    268 ...st_nlink   3
    269 ...st_uid     0
    270 ...st_gid     0
    271 ...st_rdev    (0x0:0x0)
    272 ...st_size    0
    273 ...st_atime   Sat Dec 31 09:00:00 1988
    274 ...st_mtime   Sat Dec 31 09:00:00 1988
    275 ...st_ctime   Sat Dec 31 09:00:10 1988
    276 stat( dir1/dir1/file1 ) returned
    277 st_dev     (0x0:0x0)
    278 ...st_ino     11         ( May vary slightly )
    279 ...st_mode    100000
    280 ...st_nlink   3
    281 ...st_uid     0
    282 ...st_gid     0
    283 ...st_rdev    (0x0:0x0)
    284 ...st_size    0
    285 ...st_atime   Sat Dec 31 09:00:00 1988
    286 ...st_mtime   Sat Dec 31 09:00:00 1988
    287 ...st_ctime   Sat Dec 31 09:00:10 1988
    288 stat( dir1/dir1/ file1 ) returned
    289 st_dev     (0x0:0x0)
    290 ...st_ino     12         ( May vary slightly )
    291 ...st_mode    100000
    292 ...st_nlink   3
    293 ...st_uid     0
    294 ...st_gid     0
    295 ...st_rdev    (0x0:0x0)
    296 ...st_size    0
    297 ...st_atime   Sat Dec 31 09:00:00 1988
    298 ...st_mtime   Sat Dec 31 09:00:00 1988
    299 ...st_ctime   Sat Dec 31 09:00:10 1988
    300 stat( dir1 ) returned
    301 st_dev     (0x0:0x0)
    302 ...st_ino     5         ( May vary slightly )
    303 ...st_mode    40700
    304 ...st_nlink   3
    305 ...st_uid     0
    306 ...st_gid     0
    307 ...st_rdev    (0x0:0x0)
    308 ...st_size    1608
    309 ...st_atime   Sat Dec 31 09:00:00 1988
    310 ...st_mtime   Sat Dec 31 09:00:00 1988
    311 ...st_ctime   Sat Dec 31 09:00:05 1988
    312 stat( dir2////// ) returned
    313 st_dev     (0x0:0x0)
    314 ...st_ino     6         ( May vary slightly )
    315 ...st_mode    40700
    316 ...st_nlink   3
    317 ...st_uid     0
    318 ...st_gid     0
    319 ...st_rdev    (0x0:0x0)
    320 ...st_size    0
    321 ...st_atime   Sat Dec 31 09:00:00 1988
    322 ...st_mtime   Sat Dec 31 09:00:00 1988
    323 ...st_ctime   Sat Dec 31 09:00:05 1988
    324 stat( dir3 ) returned
    325 st_dev     (0x0:0x0)
    326 ...st_ino     7         ( May vary slightly )
    327 ...st_mode    40700
    328 ...st_nlink   3
    329 ...st_uid     0
    330 ...st_gid     0
    331 ...st_rdev    (0x0:0x0)
    332 ...st_size    0
    333 ...st_atime   Sat Dec 31 09:00:00 1988
    334 ...st_mtime   Sat Dec 31 09:00:00 1988
    335 ...st_ctime   Sat Dec 31 09:00:05 1988
    336 stat( dir4 ) returned
    337 st_dev     (0x0:0x0)
    338 ...st_ino     8         ( May vary slightly )
    339 ...st_mode    40700
    340 ...st_nlink   3
    341 ...st_uid     0
    342 ...st_gid     0
    343 ...st_rdev    (0x0:0x0)
    344 ...st_size    0
    345 ...st_atime   Sat Dec 31 09:00:00 1988
    346 ...st_mtime   Sat Dec 31 09:00:00 1988
    347 ...st_ctime   Sat Dec 31 09:00:05 1988
    348 stat( dir1/dir1 ) returned
    349 st_dev     (0x0:0x0)
    350 ...st_ino     9         ( May vary slightly )
    351 ...st_mode    40700
    352 ...st_nlink   3
    353 ...st_uid     0
    354 ...st_gid     0
    355 ...st_rdev    (0x0:0x0)
    356 ...st_size    536
    357355...st_atime   Sat Dec 31 09:00:00 1988
    358356...st_mtime   Sat Dec 31 09:00:00 1988
     
    360358stat( dir1/ dir1///\ ) returned
    361359st_dev     (0x0:0x0)
    362 ...st_ino     a         ( May vary slightly )
     360...st_ino     8
    363361...st_mode    40700
    364362...st_nlink   3
     
    372370stat( main.c ) returned
    373371st_dev     (0x0:0x0)
    374 ...st_ino     13         ( May vary slightly )
     372...st_ino     11
    375373...st_mode    100000
    376374...st_nlink   1
     
    402400stat( dir1/dir1/../../links/dir1 ) returned
    403401st_dev     (0x0:0x0)
    404 ...st_ino     5         ( May vary slightly )
     402...st_ino     3
    405403...st_mode    40700
    406404...st_nlink   3
     
    414412stat( links/dir2 ) returned
    415413st_dev     (0x0:0x0)
    416 ...st_ino     6         ( May vary slightly )
     414...st_ino     4
    417415...st_mode    40700
    418416...st_nlink   3
     
    426424stat( links/dir3 ) returned
    427425st_dev     (0x0:0x0)
    428 ...st_ino     7         ( May vary slightly )
     426...st_ino     5
    429427...st_mode    40700
    430428...st_nlink   3
     
    438436stat( links/dir4 ) returned
    439437st_dev     (0x0:0x0)
    440 ...st_ino     8         ( May vary slightly )
     438...st_ino     6
    441439...st_mode    40700
    442440...st_nlink   3
     
    450448stat( links/dir1_dir1 ) returned
    451449st_dev     (0x0:0x0)
    452 ...st_ino     9         ( May vary slightly )
     450...st_ino     7
    453451...st_mode    40700
    454452...st_nlink   3
     
    462460stat( links/dir1_ dir1 ) returned
    463461st_dev     (0x0:0x0)
    464 ...st_ino     a         ( May vary slightly )
     462...st_ino     8
    465463...st_mode    40700
    466464...st_nlink   3
     
    474472stat( links/../links/../links/links ) returned
    475473st_dev     (0x0:0x0)
    476 ...st_ino     b         ( May vary slightly )
     474...st_ino     9
    477475...st_mode    40700
    478476...st_nlink   3
     
    486484stat( links/dir1_file1 ) returned
    487485st_dev     (0x0:0x0)
    488 ...st_ino     d         ( May vary slightly )
     486...st_ino     b
    489487...st_mode    100000
    490488...st_nlink   3
     
    498496stat( links/dir1_file2 ) returned
    499497st_dev     (0x0:0x0)
    500 ...st_ino     e         ( May vary slightly )
     498...st_ino     c
    501499...st_mode    100000
    502500...st_nlink   3
     
    510508stat( links/dir1_file3 ) returned
    511509st_dev     (0x0:0x0)
    512 ...st_ino     f         ( May vary slightly )
     510...st_ino     d
    513511...st_mode    100000
    514512...st_nlink   3
     
    522520stat( links/dir1_file4 ) returned
    523521st_dev     (0x0:0x0)
    524 ...st_ino     10         ( May vary slightly )
     522...st_ino     e
    525523...st_mode    100000
    526524...st_nlink   3
     
    534532stat( links/dir1_dir1_f1 ) returned
    535533st_dev     (0x0:0x0)
    536 ...st_ino     11         ( May vary slightly )
     534...st_ino     f
    537535...st_mode    100000
    538536...st_nlink   3
     
    546544stat( links/dir1_dir1 f1 ) returned
    547545st_dev     (0x0:0x0)
    548 ...st_ino     12         ( May vary slightly )
     546...st_ino     10
    549547...st_mode    100000
    550548...st_nlink   3
     
    558556stat( links/links/links/links_dir1 ) returned
    559557st_dev     (0x0:0x0)
    560 ...st_ino     5         ( May vary slightly )
     558...st_ino     3
    561559...st_mode    40700
    562560...st_nlink   3
     
    570568stat( links//links_dir2 ) returned
    571569st_dev     (0x0:0x0)
    572 ...st_ino     6         ( May vary slightly )
     570...st_ino     4
    573571...st_mode    40700
    574572...st_nlink   3
     
    582580stat( links//links_dir3 ) returned
    583581st_dev     (0x0:0x0)
    584 ...st_ino     7         ( May vary slightly )
     582...st_ino     5
    585583...st_mode    40700
    586584...st_nlink   3
     
    594592stat( links//links_dir4 ) returned
    595593st_dev     (0x0:0x0)
    596 ...st_ino     8         ( May vary slightly )
     594...st_ino     6
    597595...st_mode    40700
    598596...st_nlink   3
     
    606604stat( links//links_dir1_d1 ) returned
    607605st_dev     (0x0:0x0)
    608 ...st_ino     9         ( May vary slightly )
     606...st_ino     7
    609607...st_mode    40700
    610608...st_nlink   3
     
    618616stat( links//links_dir1 d1 ) returned
    619617st_dev     (0x0:0x0)
    620 ...st_ino     a         ( May vary slightly )
     618...st_ino     8
    621619...st_mode    40700
    622620...st_nlink   3
     
    630628stat( links//links_links ) returned
    631629st_dev     (0x0:0x0)
    632 ...st_ino     b         ( May vary slightly )
     630...st_ino     9
    633631...st_mode    40700
    634632...st_nlink   3
     
    642640stat( links///links_d1_file1 ) returned
    643641st_dev     (0x0:0x0)
    644 ...st_ino     d         ( May vary slightly )
     642...st_ino     b
    645643...st_mode    100000
    646644...st_nlink   3
     
    654652stat( links///links_d1_file2 ) returned
    655653st_dev     (0x0:0x0)
    656 ...st_ino     e         ( May vary slightly )
     654...st_ino     c
    657655...st_mode    100000
    658656...st_nlink   3
     
    666664stat( links///links_d1_file3 ) returned
    667665st_dev     (0x0:0x0)
    668 ...st_ino     f         ( May vary slightly )
     666...st_ino     d
    669667...st_mode    100000
    670668...st_nlink   3
     
    678676stat( links///links_d1_file4 ) returned
    679677st_dev     (0x0:0x0)
    680 ...st_ino     10         ( May vary slightly )
     678...st_ino     e
    681679...st_mode    100000
    682680...st_nlink   3
     
    690688stat( links///links_d1_d1_f1 ) returned
    691689st_dev     (0x0:0x0)
    692 ...st_ino     11         ( May vary slightly )
     690...st_ino     f
    693691...st_mode    100000
    694692...st_nlink   3
     
    702700stat( links///links_r1_d1 f1 ) returned
    703701st_dev     (0x0:0x0)
    704 ...st_ino     12         ( May vary slightly )
    705 ...st_mode    100000
    706 ...st_nlink   3
    707 ...st_uid     0
    708 ...st_gid     0
    709 ...st_rdev    (0x0:0x0)
    710 ...st_size    0
    711 ...st_atime   Sat Dec 31 09:00:00 1988
    712 ...st_mtime   Sat Dec 31 09:00:00 1988
    713 ...st_ctime   Sat Dec 31 09:00:10 1988
    714 chmod of /dir1/dir1 to Read/Write
     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
     712chmod of /my_mount_point/dir1/dir1 to Read/Write
    715713Doing the stat() on all the bad paths
    716 stat( /links/ENAMETOOLONG__________________________ ) returned : File or path name too long
    717 stat( /dir1/file4/NOTADIR ) returned : Not a directory
    718 stat( /dir1/dir1/EACCES__ ) returned : Permission denied
    719 Making file /links/ENAMETOOLONG__________________________ : File or path name too long
    720 Making file /dir1/file4/NOTADIR : Not a directory
    721 Making file /dir1/dir1/EACCES__ : Permission denied
    722 Return /dir1/dir1 to RWX
    723 Making file /symlinks/a_file_symlink
    724 Verify with readlink
    725 Making file /symlinks/a_dir_symlink
    726 Verify with readlink
    727 Making file /symlinks/a_link_symlink
     714stat( /my_mount_point/links/ENAMETOOLONG__________________________ ) returned : File or path name too long
     715stat( /my_mount_point/dir1/file4/NOTADIR ) returned : Not a directory
     716stat( /my_mount_point/dir1/dir1/EACCES__ ) returned : Permission denied
     717Making file /my_mount_point/links/ENAMETOOLONG__________________________ : File or path name too long
     718Making file /my_mount_point/dir1/file4/NOTADIR : Not a directory
     719Making file /my_mount_point/dir1/dir1/EACCES__ : Permission denied
     720Return /my_mount_point/dir1/dir1 to RWX
     721Making file /my_mount_point/symlinks/a_file_symlink
     722Verify with readlink
     723Making file /my_mount_point/symlinks/a_dir_symlink
     724Verify with readlink
     725Making file /my_mount_point/symlinks/a_link_symlink
    728726Verify with readlink
    729727Making file ../symlinks/no_file
    730728Verify with readlink
    731 Making file /symlinks/a_dir_symlink/a_file_symlink
    732 Verify with readlink
    733 Making file /symlinks/links
    734 Verify with readlink
    735 stat( /symlinks/a_file_symlink ) returned
    736 st_dev     (0x0:0x0)
    737 ...st_ino     d         ( May vary slightly )
    738 ...st_mode    100000
    739 ...st_nlink   3
    740 ...st_uid     0
    741 ...st_gid     0
    742 ...st_rdev    (0x0:0x0)
    743 ...st_size    0
    744 ...st_atime   Sat Dec 31 09:00:00 1988
    745 ...st_mtime   Sat Dec 31 09:00:00 1988
    746 ...st_ctime   Sat Dec 31 09:00:10 1988
    747 stat( /symlinks/a_dir_symlink ) returned
    748 st_dev     (0x0:0x0)
    749 ...st_ino     5         ( May vary slightly )
     729Making file /my_mount_point/symlinks/a_dir_symlink/a_file_symlink
     730Verify with readlink
     731Making file /my_mount_point/symlinks/links
     732Verify with readlink
     733stat( /my_mount_point/symlinks/a_file_symlink ) returned
     734st_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
     745stat( /my_mount_point/symlinks/a_dir_symlink ) returned
     746st_dev     (0x0:0x0)
     747...st_ino     3
    750748...st_mode    40700
    751749...st_nlink   3
     
    757755...st_mtime   Sat Dec 31 09:00:00 1988
    758756...st_ctime   Sat Dec 31 09:00:05 1988
    759 stat( /symlinks/a_link_symlink ) returned
    760 st_dev     (0x0:0x0)
    761 ...st_ino     5         ( May vary slightly )
     757stat( /my_mount_point/symlinks/a_link_symlink ) returned
     758st_dev     (0x0:0x0)
     759...st_ino     3
    762760...st_mode    40700
    763761...st_nlink   3
     
    770768...st_ctime   Sat Dec 31 09:00:05 1988
    771769stat( ../symlinks/no_file ) returned : No such file or directory
    772 stat( /symlinks/a_dir_symlink/a_file_symlink ) returned
    773 st_dev     (0x0:0x0)
    774 ...st_ino     5         ( May vary slightly )
     770stat( /my_mount_point/symlinks/a_dir_symlink/a_file_symlink ) returned
     771st_dev     (0x0:0x0)
     772...st_ino     3
    775773...st_mode    40700
    776774...st_nlink   3
     
    800798Making file 9
    801799Verify with readlink
    802 stat( 1 ) returned
    803 st_dev     (0x0:0x0)
    804 ...st_ino     c         ( May vary slightly )
    805 ...st_mode    40700
    806 ...st_nlink   1
    807 ...st_uid     0
    808 ...st_gid     0
    809 ...st_rdev    (0x0:0x0)
    810 ...st_size    1340
    811 ...st_atime   Sat Dec 31 09:00:00 1988
    812 ...st_mtime   Sat Dec 31 09:00:00 1988
    813 ...st_ctime   Sat Dec 31 09:00:00 1988
    814 stat( 2 ) returned
    815 st_dev     (0x0:0x0)
    816 ...st_ino     c         ( May vary slightly )
    817 ...st_mode    40700
    818 ...st_nlink   1
    819 ...st_uid     0
    820 ...st_gid     0
    821 ...st_rdev    (0x0:0x0)
    822 ...st_size    1340
    823 ...st_atime   Sat Dec 31 09:00:00 1988
    824 ...st_mtime   Sat Dec 31 09:00:00 1988
    825 ...st_ctime   Sat Dec 31 09:00:00 1988
    826 stat( 3 ) returned
    827 st_dev     (0x0:0x0)
    828 ...st_ino     c         ( May vary slightly )
    829 ...st_mode    40700
    830 ...st_nlink   1
    831 ...st_uid     0
    832 ...st_gid     0
    833 ...st_rdev    (0x0:0x0)
    834 ...st_size    1340
    835 ...st_atime   Sat Dec 31 09:00:00 1988
    836 ...st_mtime   Sat Dec 31 09:00:00 1988
    837 ...st_ctime   Sat Dec 31 09:00:00 1988
    838 stat( 4 ) returned
    839 st_dev     (0x0:0x0)
    840 ...st_ino     c         ( May vary slightly )
    841 ...st_mode    40700
    842 ...st_nlink   1
    843 ...st_uid     0
    844 ...st_gid     0
    845 ...st_rdev    (0x0:0x0)
    846 ...st_size    1340
    847 ...st_atime   Sat Dec 31 09:00:00 1988
    848 ...st_mtime   Sat Dec 31 09:00:00 1988
    849 ...st_ctime   Sat Dec 31 09:00:00 1988
    850 stat( 5 ) returned : Too many symbolic links
     800stat( 1 ) returned : No such file or directory
     801stat( 2 ) returned : No such file or directory
     802stat( 3 ) returned : No such file or directory
     803stat( 4 ) returned : No such file or directory
     804stat( 5 ) returned : No such file or directory
    851805stat( 6 ) returned : Too many symbolic links
    852806stat( 7 ) returned : Too many symbolic links
     
    855809Pass an invalid mode to chmod should fail with EPERM
    856810chdir to a file should fail with ENOTDIR
    857 Verify RWX permission on /dir1 via access
    858 chmod of /dir1 to Read/Write
     811Verify RWX permission on /my_mount_point/dir1 via access
     812chmod of /my_mount_point/dir1 to Read/Write
    859813chmod fred should fail with ENOENT
    860 Create under /dir1 should fail with EACCES
    861 chdir to /dir1/dir1 should fail with EACCES
     814Create under /my_mount_point/dir1 should fail with EACCES
     815chdir to /my_mount_point/dir1/dir1 should fail with EACCES
    862816Stat with a NULL buffer should fail with EFAULT
    863 chmod of /dir1 to Read/Write
    864 mkdir /dir1/BADNAME should fail with EACCESS
    865 /dir1 Should exist ( access )
    866 /dir1 Should have read  permission( access )
    867 /dir1 Should have write permission( access )
    868 /dir1 Should not have execute permission( access )
    869 Restore /dir1 to RWX
    870 chdir to /
    871 Remove /./././dir1/ dir1
    872 stat( /./././dir1/ dir1 ) returned : No such file or directory
     817chmod of /my_mount_point/dir1 to Read/Write
     818mkdir /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 )
     823Restore /my_mount_point/dir1 to RWX
     824chdir to /my_mount_point
     825Remove /./././my_mount_point/dir1/ dir1
     826stat( /./././my_mount_point/dir1/ dir1 ) returned : No such file or directory
    873827stat( links/dir1_ dir1 ) returned
    874828st_dev     (0x0:0x0)
    875 ...st_ino     a         ( May vary slightly )
     829...st_ino     8
    876830...st_mode    40700
    877831...st_nlink   2
     
    885839stat( links//links_dir1 d1 ) returned
    886840st_dev     (0x0:0x0)
    887 ...st_ino     a         ( May vary slightly )
     841...st_ino     8
    888842...st_mode    40700
    889843...st_nlink   2
     
    899853mkdir ../t should fail with ENOENT
    900854mkdir t
    901 chdir to /
     855chdir to /my_mount_point
    902856rmdir links/dir1_ dir1 should fail with ENOTDIR
    903857unlink links/dir1_ dir1
     
    907861Attempting to mount IMFS file system at /dir1/my_mount_point
    908862rmdir /dir1/my_mount_point should fail with EBUSY
    909 Unmount /dir1/my_mount_point
    910 chmod of ////dir1///file1\// to group and other execute
    911 Open ////dir1///file1\// for write should fail with EACCES
    912 chmod of /dir4 to User Execute and Read
    913 Mkdir of /dir4/NewFile should fail with EACCES
     863Unmount /my_mount_point/dir1/my_mount_point
     864chmod of /////my_mount_point/dir1///file1\// to group and other execute
     865Open /////my_mount_point/dir1///file1\// for write should fail with EACCES
     866chmod of /my_mount_point/dir4 to User Execute and Read
     867Mkdir of /my_mount_point/dir4/NewFile should fail with EACCES
    914868Making too many hard links.
    915869Making file /LinkName1
     
    922876Making file /LinkName8
    923877pass fstat a null pointer should fail with EFAULT
    924 chdir to /
    925 Change group of ////dir1///file1\//
    926 stat( ////dir1///file1\// ) returned
    927 st_dev     (0x0:0x0)
    928 ...st_ino     d         ( May vary slightly )
     878chdir to /my_mount_point
     879Change group of /////my_mount_point/dir1///file1\//
     880stat( /////my_mount_point/dir1///file1\// ) returned
     881st_dev     (0x0:0x0)
     882...st_ino     b
    929883...st_mode    100011
    930884...st_nlink   3
     
    936890...st_mtime   Sat Dec 31 09:00:00 1988
    937891...st_ctime   Sat Dec 31 09:00:25 1988
    938 Change owner of ////dir1///file1\//
    939 stat( ////dir1///file1\// ) returned
    940 st_dev     (0x0:0x0)
    941 ...st_ino     d         ( May vary slightly )
     892Change owner of /////my_mount_point/dir1///file1\//
     893stat( /////my_mount_point/dir1///file1\// ) returned
     894st_dev     (0x0:0x0)
     895...st_ino     b
    942896...st_mode    100011
    943897...st_nlink   3
     
    949903...st_mtime   Sat Dec 31 09:00:00 1988
    950904...st_ctime   Sat Dec 31 09:00:25 1988
    951 Change group of /dir1/file2
    952 stat( /dir1/file2 ) returned
    953 st_dev     (0x0:0x0)
    954 ...st_ino     e         ( May vary slightly )
    955 ...st_mode    100000
    956 ...st_nlink   3
    957 ...st_uid     0
    958 ...st_gid     1
    959 ...st_rdev    (0x0:0x0)
    960 ...st_size    0
    961 ...st_atime   Sat Dec 31 09:00:00 1988
    962 ...st_mtime   Sat Dec 31 09:00:00 1988
    963 ...st_ctime   Sat Dec 31 09:00:25 1988
    964 Change owner of /dir1/file2
    965 stat( /dir1/file2 ) returned
    966 st_dev     (0x0:0x0)
    967 ...st_ino     e         ( May vary slightly )
     905Change group of /my_mount_point/dir1/file2
     906stat( /my_mount_point/dir1/file2 ) returned
     907st_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
     918Change owner of /my_mount_point/dir1/file2
     919stat( /my_mount_point/dir1/file2 ) returned
     920st_dev     (0x0:0x0)
     921...st_ino     c
    968922...st_mode    100000
    969923...st_nlink   3
     
    975929...st_mtime   Sat Dec 31 09:00:00 1988
    976930...st_ctime   Sat Dec 31 09:00:25 1988
    977 Change group of /dir1/file3
    978 stat( /dir1/file3 ) returned
    979 st_dev     (0x0:0x0)
    980 ...st_ino     f         ( May vary slightly )
    981 ...st_mode    100000
    982 ...st_nlink   3
    983 ...st_uid     0
    984 ...st_gid     1
    985 ...st_rdev    (0x0:0x0)
    986 ...st_size    0
    987 ...st_atime   Sat Dec 31 09:00:00 1988
    988 ...st_mtime   Sat Dec 31 09:00:00 1988
    989 ...st_ctime   Sat Dec 31 09:00:25 1988
    990 Change owner of /dir1/file3
    991 stat( /dir1/file3 ) returned
    992 st_dev     (0x0:0x0)
    993 ...st_ino     f         ( May vary slightly )
     931Change group of /my_mount_point/dir1/file3
     932stat( /my_mount_point/dir1/file3 ) returned
     933st_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
     944Change owner of /my_mount_point/dir1/file3
     945stat( /my_mount_point/dir1/file3 ) returned
     946st_dev     (0x0:0x0)
     947...st_ino     d
    994948...st_mode    100000
    995949...st_nlink   3
     
    1001955...st_mtime   Sat Dec 31 09:00:00 1988
    1002956...st_ctime   Sat Dec 31 09:00:25 1988
    1003 Change group of /dir1/file4
    1004 stat( /dir1/file4 ) returned
    1005 st_dev     (0x0:0x0)
    1006 ...st_ino     10         ( May vary slightly )
    1007 ...st_mode    100000
    1008 ...st_nlink   3
    1009 ...st_uid     0
    1010 ...st_gid     1
    1011 ...st_rdev    (0x0:0x0)
    1012 ...st_size    0
    1013 ...st_atime   Sat Dec 31 09:00:00 1988
    1014 ...st_mtime   Sat Dec 31 09:00:00 1988
    1015 ...st_ctime   Sat Dec 31 09:00:25 1988
    1016 Change owner of /dir1/file4
    1017 stat( /dir1/file4 ) returned
    1018 st_dev     (0x0:0x0)
    1019 ...st_ino     10         ( May vary slightly )
     957Change group of /my_mount_point/dir1/file4
     958stat( /my_mount_point/dir1/file4 ) returned
     959st_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
     970Change owner of /my_mount_point/dir1/file4
     971stat( /my_mount_point/dir1/file4 ) returned
     972st_dev     (0x0:0x0)
     973...st_ino     e
    1020974...st_mode    100000
    1021975...st_nlink   3
     
    1027981...st_mtime   Sat Dec 31 09:00:00 1988
    1028982...st_ctime   Sat Dec 31 09:00:25 1988
    1029 Change group of /dir1/dir1/file1
    1030 stat( /dir1/dir1/file1 ) returned
    1031 st_dev     (0x0:0x0)
    1032 ...st_ino     11         ( May vary slightly )
    1033 ...st_mode    100000
    1034 ...st_nlink   3
    1035 ...st_uid     0
    1036 ...st_gid     1
    1037 ...st_rdev    (0x0:0x0)
    1038 ...st_size    0
    1039 ...st_atime   Sat Dec 31 09:00:00 1988
    1040 ...st_mtime   Sat Dec 31 09:00:00 1988
    1041 ...st_ctime   Sat Dec 31 09:00:25 1988
    1042 Change owner of /dir1/dir1/file1
    1043 stat( /dir1/dir1/file1 ) returned
    1044 st_dev     (0x0:0x0)
    1045 ...st_ino     11         ( May vary slightly )
     983Change group of /my_mount_point/dir1/dir1/file1
     984stat( /my_mount_point/dir1/dir1/file1 ) returned
     985st_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
     996Change owner of /my_mount_point/dir1/dir1/file1
     997stat( /my_mount_point/dir1/dir1/file1 ) returned
     998st_dev     (0x0:0x0)
     999...st_ino     f
    10461000...st_mode    100000
    10471001...st_nlink   3
     
    10531007...st_mtime   Sat Dec 31 09:00:00 1988
    10541008...st_ctime   Sat Dec 31 09:00:25 1988
    1055 Change group of ../../..//dir1/./././dir1/ file1
    1056 stat( ../../..//dir1/./././dir1/ file1 ) returned
    1057 st_dev     (0x0:0x0)
    1058 ...st_ino     12         ( May vary slightly )
    1059 ...st_mode    100000
    1060 ...st_nlink   3
    1061 ...st_uid     0
    1062 ...st_gid     1
    1063 ...st_rdev    (0x0:0x0)
    1064 ...st_size    0
    1065 ...st_atime   Sat Dec 31 09:00:00 1988
    1066 ...st_mtime   Sat Dec 31 09:00:00 1988
    1067 ...st_ctime   Sat Dec 31 09:00:25 1988
    1068 Change owner of ../../..//dir1/./././dir1/ file1
    1069 stat( ../../..//dir1/./././dir1/ file1 ) returned
    1070 st_dev     (0x0:0x0)
    1071 ...st_ino     12         ( May vary slightly )
     1009Change group of ../../..//my_mount_point/dir1/./././dir1/ file1
     1010stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
     1011st_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
     1022Change owner of ../../..//my_mount_point/dir1/./././dir1/ file1
     1023stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
     1024st_dev     (0x0:0x0)
     1025...st_ino     10
    10721026...st_mode    100000
    10731027...st_nlink   3
     
    10821036stat( main.c ) returned
    10831037st_dev     (0x0:0x0)
    1084 ...st_ino     13         ( May vary slightly )
     1038...st_ino     11
    10851039...st_mode    100000
    10861040...st_nlink   1
     
    10951049stat( main.c ) returned
    10961050st_dev     (0x0:0x0)
    1097 ...st_ino     13         ( May vary slightly )
     1051...st_ino     11
    10981052...st_mode    100000
    10991053...st_nlink   1
     
    11081062stat( dir1/dir1/../../links/dir1 ) returned
    11091063st_dev     (0x0:0x0)
    1110 ...st_ino     5         ( May vary slightly )
     1064...st_ino     3
    11111065...st_mode    40700
    11121066...st_nlink   3
     
    11231077stat( links/dir2 ) returned
    11241078st_dev     (0x0:0x0)
    1125 ...st_ino     6         ( May vary slightly )
     1079...st_ino     4
    11261080...st_mode    40700
    11271081...st_nlink   3
     
    11361090stat( links/dir2 ) returned
    11371091st_dev     (0x0:0x0)
    1138 ...st_ino     6         ( May vary slightly )
     1092...st_ino     4
    11391093...st_mode    40700
    11401094...st_nlink   3
     
    11491103stat( links/dir3 ) returned
    11501104st_dev     (0x0:0x0)
    1151 ...st_ino     7         ( May vary slightly )
     1105...st_ino     5
    11521106...st_mode    40700
    11531107...st_nlink   3
     
    11621116stat( links/dir3 ) returned
    11631117st_dev     (0x0:0x0)
    1164 ...st_ino     7         ( May vary slightly )
     1118...st_ino     5
    11651119...st_mode    40700
    11661120...st_nlink   3
     
    11751129stat( links/dir4 ) returned
    11761130st_dev     (0x0:0x0)
    1177 ...st_ino     8         ( May vary slightly )
     1131...st_ino     6
    11781132...st_mode    40500
    11791133...st_nlink   3
     
    11881142stat( links/dir4 ) returned
    11891143st_dev     (0x0:0x0)
    1190 ...st_ino     8         ( May vary slightly )
     1144...st_ino     6
    11911145...st_mode    40500
    11921146...st_nlink   3
     
    12011155stat( links/dir1_dir1 ) returned
    12021156st_dev     (0x0:0x0)
    1203 ...st_ino     9         ( May vary slightly )
     1157...st_ino     7
    12041158...st_mode    40700
    12051159...st_nlink   3
     
    12141168stat( links/dir1_dir1 ) returned
    12151169st_dev     (0x0:0x0)
    1216 ...st_ino     9         ( May vary slightly )
     1170...st_ino     7
    12171171...st_mode    40700
    12181172...st_nlink   3
     
    12311185stat( links/../links/../links/links ) returned
    12321186st_dev     (0x0:0x0)
    1233 ...st_ino     b         ( May vary slightly )
     1187...st_ino     9
    12341188...st_mode    40700
    12351189...st_nlink   3
  • c/src/tests/psxtests/psxstat/test.c

    r1e566bbb r2e3ce06  
    2727
    2828#define MAXSYMLINK 5   /* There needs to be a better way of getting this. */
     29#define TIMEOUT_VALUE  ( 5 * TICKS_PER_SECOND )
    2930
    3031
     
    3435
    3536char *Files[] = {
    36   "////dir1/\\//file1\\\\//",
    37   "/dir1/file2",
    38   "/dir1/file3",
    39   "/dir1/file4",
    40   "/dir1/dir1/file1",
    41   "../../..//dir1/./././dir1/ file1",
     37  "/////my_mount_point/dir1/\\//file1\\\\//",
     38  "/my_mount_point/dir1/file2",
     39  "/my_mount_point/dir1/file3",
     40  "/my_mount_point/dir1/file4",
     41  "/my_mount_point/dir1/dir1/file1",
     42  "../../..//my_mount_point/dir1/./././dir1/ file1",
    4243  "main.c",
    4344  0
     
    4950
    5051char *Directories[] = {
    51   "/dir1",
    52   "/dir2",
    53   "/dir3",
    54   "/dir4",
    55   "/dir1/dir1",
    56   "/./././dir1/ dir1",
    57   "/./././links", 
    58   "///dir1/dir1/../../dir1/../symlinks/////",
     52  "/my_mount_point/dir1",
     53  "/my_mount_point/dir2",
     54  "/my_mount_point/dir3",
     55  "/my_mount_point/dir4",
     56  "/my_mount_point/dir1/dir1",
     57  "/./././my_mount_point/dir1/ dir1",
     58  "/./././my_mount_point/links", 
     59  "///my_mount_point/dir1/dir1/../../dir1/../symlinks/////",
    5960  0
    6061};
     
    103104
    104105char *SymLinks[]= {
    105   "/symlinks/a_file_symlink",
    106   "/symlinks/a_dir_symlink",
    107   "/symlinks/a_link_symlink",
     106  "/my_mount_point/symlinks/a_file_symlink",
     107  "/my_mount_point/symlinks/a_dir_symlink",
     108  "/my_mount_point/symlinks/a_link_symlink",
    108109  "../symlinks/no_file",
    109   "/symlinks/a_dir_symlink/a_file_symlink",
     110  "/my_mount_point/symlinks/a_dir_symlink/a_file_symlink",
    110111  0
    111112};
     
    116117
    117118char *Good_absolute_paths[] = {
    118   "/dev",
    119   "////dir1/\\//file1\\\\//",
    120   "/dir1/\\\\/file2",
    121   "/dir1/file3/////\\\\\\",
    122   "/dir1/file4",
    123   "/dir1/dir1/file1",
    124   "/dir1/dir1/ file1",
    125   "/dir1",
    126   "/dir2//////\\",
    127   "/dir3",
    128   "/dir4",
    129   "/dir1/dir1",
    130   "/dir1/ dir1///\\\\",
    131   "/\\/\\/\\/\\/\\/\\/links\\/\\/\\/\\/\\/\\",
     119  "/my_mount_point/dev",
     120  "////my_mount_point/dir1/\\//file1\\\\//",
     121  "/my_mount_point/dir1/\\\\/file2",
     122  "/my_mount_point/dir1/file3/////\\\\\\",
     123  "/my_mount_point/dir1/file4",
     124  "/my_mount_point/dir1/dir1/file1",
     125  "/my_mount_point/dir1/dir1/ file1",
     126  "/my_mount_point/dir1",
     127  "/my_mount_point/dir2//////\\",
     128  "/my_mount_point/dir3",
     129  "/my_mount_point/dir4",
     130  "/my_mount_point/dir1/dir1",
     131  "/my_mount_point/dir1/ dir1///\\\\",
     132  "/my_mount_point/\\/\\/\\/\\/\\/\\/links\\/\\/\\/\\/\\/\\",
    132133  0
    133134};
     
    135136
    136137char *Bad_paths[] = {
    137   "/links/ENAMETOOLONG__________________________",
    138   "/dir1/file4/NOTADIR",
    139   "/dir1/dir1/EACCES__",
     138  "/my_mount_point/links/ENAMETOOLONG__________________________",
     139  "/my_mount_point/dir1/file4/NOTADIR",
     140  "/my_mount_point/dir1/dir1/EACCES__",
    140141  0
    141142};
     
    387388 make_a_symlink( "No_File",            SymLinks[3] );
    388389 make_a_symlink( SymLinks[1],          SymLinks[4] );
    389  make_a_symlink( "//links",            "/symlinks/links" );
     390 make_a_symlink( "//my_mount_point/links","/my_mount_point/symlinks/links" );
    390391
    391392 stat_a_file( SymLinks[0] );
     
    561562  assert( status == 0 );
    562563
    563   printf("chdir to / \n");
    564   status = chdir( "/" );
     564  printf("chdir to /my_mount_point \n");
     565  status = chdir( "/my_mount_point" );
    565566  assert( status == 0 );
    566567
     
    610611  assert( status == 0 );
    611612
    612   printf("chdir to / \n");
    613   status = chdir( "/" );
     613  printf("chdir to /my_mount_point\n");
     614  status = chdir( "/my_mount_point" );
    614615  assert( status == 0 );
    615616
     
    652653     RTEMS_FILESYSTEM_READ_WRITE,
    653654     NULL,
    654      "/dir1/my_mount_point" );
     655     "/my_mount_point/dir1/my_mount_point" );
    655656  assert( status == 0 );
    656657
    657658  printf("rmdir /dir1/my_mount_point should fail with EBUSY\n");
    658   status = rmdir ("/dir1/my_mount_point" );
     659  status = rmdir ("/my_mount_point/dir1/my_mount_point" );
    659660  assert( status == -1 );
    660661  assert( errno == EBUSY );
    661662
    662   printf( "Unmount /dir1/my_mount_point\n");
    663   status = unmount( "/dir1/my_mount_point" );
     663  printf( "Unmount /my_mount_point/dir1/my_mount_point\n");
     664  status = unmount( "/my_mount_point/dir1/my_mount_point" );
    664665  assert( status == 0 );
    665666
     
    699700   */
    700701
    701   printf("chdir to / \n");
    702   status = chdir( "/" );
     702  printf("chdir to /my_mount_point \n");
     703  status = chdir( "/my_mount_point" );
    703704  assert( status == 0 );
    704705
     
    728729#endif
    729730{
    730   rtems_status_code status;
    731   rtems_time_of_day time;
     731  rtems_status_code                    status;
     732  rtems_time_of_day                    time;
     733  rtems_filesystem_mount_table_entry_t *mt_entry;
    732734
    733735  puts( "\n\n*** STAT TEST 01 ***" );
     
    735737  build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
    736738  status = rtems_clock_set( &time );
     739  Show_Time();
     740
     741  /*
     742   * Create and mount another version of the filesyste.
     743   * This allows expected node id's to be consistant across
     744   * platforms and bsp's.
     745   */
     746
     747  status = mkdir("/my_mount_point",  S_IRWXU );
     748  assert( status == 0 );
     749  status = mount(
     750     &mt_entry,
     751     &IMFS_ops,
     752     RTEMS_FILESYSTEM_READ_WRITE,
     753     NULL,
     754     "my_mount_point" );
     755  assert( status == 0 );
     756  status = chdir( "/my_mount_point" );
     757  assert( status == 0 );
     758  status = mkdir("dev",  S_IRWXU );
     759  assert( status == 0 );
     760
    737761
    738762  /*
    739763   *  Create the files and directories for the test.
    740764   */
    741   Show_Time();
    742765
    743766  make_multiple_directories( Directories );
     
    746769  make_multiple_links( Files,          Links_to_Files );
    747770
    748   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     771  status = rtems_task_wake_after( TIMEOUT_VALUE );
    749772  make_multiple_links( Links_to_Dirs,  Links_to_dirlinks );
    750   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     773  status = rtems_task_wake_after( TIMEOUT_VALUE );
    751774  make_multiple_links( Links_to_Files, Links_to_filelinks );
    752775
    753   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     776  status = rtems_task_wake_after( TIMEOUT_VALUE );
    754777
    755778  /*
     
    810833  make_many_symlinks( "/symlinks", 10 );
    811834
    812   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     835  status = rtems_task_wake_after( TIMEOUT_VALUE );
    813836  Cause_faults();
    814837
    815   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     838  status = rtems_task_wake_after( TIMEOUT_VALUE );
    816839  chown_multiple_files( Files );
    817840
    818   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     841  status = rtems_task_wake_after( TIMEOUT_VALUE );
    819842  chown_multiple_files( Links_to_Dirs );
    820843 
  • testsuites/psxtests/psxstat/psxstat.scn

    r1e566bbb r2e3ce06  
    1 
    2 
    31*** STAT TEST 01 ***
    42>>>>Current Time:  - rtems_clock_get - 09:00:00   12/31/1988
    5 Making directory /dir1
    6 Making directory /dir2
    7 Making directory /dir3
    8 Making directory /dir4
    9 Making directory /dir1/dir1
    10 Making directory /./././dir1/ dir1
    11 Making directory /./././links
    12 Making directory ///dir1/dir1/../../dir1/../symlinks/////
    13 Making file ////dir1///file1\//
    14 Making file /dir1/file2
    15 Making file /dir1/file3
    16 Making file /dir1/file4
    17 Making file /dir1/dir1/file1
    18 Making file ../../..//dir1/./././dir1/ file1
     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/////
     11Making file /////my_mount_point/dir1///file1\//
     12Making file /my_mount_point/dir1/file2
     13Making file /my_mount_point/dir1/file3
     14Making file /my_mount_point/dir1/file4
     15Making file /my_mount_point/dir1/dir1/file1
     16Making file ../../..//my_mount_point/dir1/./././dir1/ file1
    1917Making file main.c
    2018Making file dir1/dir1/../../links/dir1
     
    4543Making file links///links_r1_d1 f1
    4644Doing the stat() on all the good absolute paths
    47 stat( /dev ) returned
    48 st_dev     (0x0:0x0)
    49 ...st_ino     2         ( May vary slightly )
    50 ...st_mode    40771
     45stat( /my_mount_point/dev ) returned
     46st_dev     (0x0:0x0)
     47...st_ino     2
     48...st_mode    40700
    5149...st_nlink   1
    5250...st_uid     0
    5351...st_gid     0
    5452...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
     57stat( ////my_mount_point/dir1///file1\// ) returned
     58st_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
     69stat( /my_mount_point/dir1/\/file2 ) returned
     70st_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
     81stat( /my_mount_point/dir1/file3/////\ ) returned
     82st_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
     93stat( /my_mount_point/dir1/file4 ) returned
     94st_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
     105stat( /my_mount_point/dir1/dir1/file1 ) returned
     106st_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
     117stat( /my_mount_point/dir1/dir1/ file1 ) returned
     118st_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
     129stat( /my_mount_point/dir1 ) returned
     130st_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
     141stat( /my_mount_point/dir2////// ) returned
     142st_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
     153stat( /my_mount_point/dir3 ) returned
     154st_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
     165stat( /my_mount_point/dir4 ) returned
     166st_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
     177stat( /my_mount_point/dir1/dir1 ) returned
     178st_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)
    55185...st_size    536
    56 ...st_atime   Fri Jan 01 00:00:00 1988
    57 ...st_mtime   Fri Jan 01 00:00:00 1988
    58 ...st_ctime   Fri Jan 01 00:00:00 1988
    59 stat( ////dir1///file1\// ) returned
    60 st_dev     (0x0:0x0)
    61 ...st_ino     d         ( May vary slightly )
    62 ...st_mode    100000
    63 ...st_nlink   3
    64 ...st_uid     0
    65 ...st_gid     0
    66 ...st_rdev    (0x0:0x0)
    67 ...st_size    0
    68 ...st_atime   Sat Dec 31 09:00:00 1988
    69 ...st_mtime   Sat Dec 31 09:00:00 1988
    70 ...st_ctime   Sat Dec 31 09:00:10 1988
    71 stat( /dir1/\/file2 ) returned
    72 st_dev     (0x0:0x0)
    73 ...st_ino     e         ( May vary slightly )
    74 ...st_mode    100000
    75 ...st_nlink   3
    76 ...st_uid     0
    77 ...st_gid     0
    78 ...st_rdev    (0x0:0x0)
    79 ...st_size    0
    80 ...st_atime   Sat Dec 31 09:00:00 1988
    81 ...st_mtime   Sat Dec 31 09:00:00 1988
    82 ...st_ctime   Sat Dec 31 09:00:10 1988
    83 stat( /dir1/file3/////\ ) returned
    84 st_dev     (0x0:0x0)
    85 ...st_ino     f         ( May vary slightly )
    86 ...st_mode    100000
    87 ...st_nlink   3
    88 ...st_uid     0
    89 ...st_gid     0
    90 ...st_rdev    (0x0:0x0)
    91 ...st_size    0
    92 ...st_atime   Sat Dec 31 09:00:00 1988
    93 ...st_mtime   Sat Dec 31 09:00:00 1988
    94 ...st_ctime   Sat Dec 31 09:00:10 1988
    95 stat( /dir1/file4 ) returned
    96 st_dev     (0x0:0x0)
    97 ...st_ino     10         ( May vary slightly )
    98 ...st_mode    100000
    99 ...st_nlink   3
    100 ...st_uid     0
    101 ...st_gid     0
    102 ...st_rdev    (0x0:0x0)
    103 ...st_size    0
    104 ...st_atime   Sat Dec 31 09:00:00 1988
    105 ...st_mtime   Sat Dec 31 09:00:00 1988
    106 ...st_ctime   Sat Dec 31 09:00:10 1988
    107 stat( /dir1/dir1/file1 ) returned
    108 st_dev     (0x0:0x0)
    109 ...st_ino     11         ( May vary slightly )
    110 ...st_mode    100000
    111 ...st_nlink   3
    112 ...st_uid     0
    113 ...st_gid     0
    114 ...st_rdev    (0x0:0x0)
    115 ...st_size    0
    116 ...st_atime   Sat Dec 31 09:00:00 1988
    117 ...st_mtime   Sat Dec 31 09:00:00 1988
    118 ...st_ctime   Sat Dec 31 09:00:10 1988
    119 stat( /dir1/dir1/ file1 ) returned
    120 st_dev     (0x0:0x0)
    121 ...st_ino     12         ( May vary slightly )
    122 ...st_mode    100000
    123 ...st_nlink   3
    124 ...st_uid     0
    125 ...st_gid     0
    126 ...st_rdev    (0x0:0x0)
    127 ...st_size    0
    128 ...st_atime   Sat Dec 31 09:00:00 1988
    129 ...st_mtime   Sat Dec 31 09:00:00 1988
    130 ...st_ctime   Sat Dec 31 09:00:10 1988
    131 stat( /dir1 ) returned
    132 st_dev     (0x0:0x0)
    133 ...st_ino     5         ( May vary slightly )
    134 ...st_mode    40700
    135 ...st_nlink   3
    136 ...st_uid     0
    137 ...st_gid     0
    138 ...st_rdev    (0x0:0x0)
    139 ...st_size    1608
    140 ...st_atime   Sat Dec 31 09:00:00 1988
    141 ...st_mtime   Sat Dec 31 09:00:00 1988
    142 ...st_ctime   Sat Dec 31 09:00:05 1988
    143 stat( /dir2////// ) returned
    144 st_dev     (0x0:0x0)
    145 ...st_ino     6         ( May vary slightly )
    146 ...st_mode    40700
    147 ...st_nlink   3
    148 ...st_uid     0
    149 ...st_gid     0
    150 ...st_rdev    (0x0:0x0)
    151 ...st_size    0
    152 ...st_atime   Sat Dec 31 09:00:00 1988
    153 ...st_mtime   Sat Dec 31 09:00:00 1988
    154 ...st_ctime   Sat Dec 31 09:00:05 1988
    155 stat( /dir3 ) returned
    156 st_dev     (0x0:0x0)
    157 ...st_ino     7         ( May vary slightly )
    158 ...st_mode    40700
    159 ...st_nlink   3
    160 ...st_uid     0
    161 ...st_gid     0
    162 ...st_rdev    (0x0:0x0)
    163 ...st_size    0
    164 ...st_atime   Sat Dec 31 09:00:00 1988
    165 ...st_mtime   Sat Dec 31 09:00:00 1988
    166 ...st_ctime   Sat Dec 31 09:00:05 1988
    167 stat( /dir4 ) returned
    168 st_dev     (0x0:0x0)
    169 ...st_ino     8         ( May vary slightly )
    170 ...st_mode    40700
    171 ...st_nlink   3
    172 ...st_uid     0
    173 ...st_gid     0
    174 ...st_rdev    (0x0:0x0)
    175 ...st_size    0
    176 ...st_atime   Sat Dec 31 09:00:00 1988
    177 ...st_mtime   Sat Dec 31 09:00:00 1988
    178 ...st_ctime   Sat Dec 31 09:00:05 1988
    179 stat( /dir1/dir1 ) returned
    180 st_dev     (0x0:0x0)
    181 ...st_ino     9         ( May vary slightly )
    182 ...st_mode    40700
    183 ...st_nlink   3
    184 ...st_uid     0
    185 ...st_gid     0
    186 ...st_rdev    (0x0:0x0)
    187 ...st_size    536
    188 ...st_atime   Sat Dec 31 09:00:00 1988
    189 ...st_mtime   Sat Dec 31 09:00:00 1988
    190 ...st_ctime   Sat Dec 31 09:00:05 1988
    191 stat( /dir1/ dir1///\ ) returned
    192 st_dev     (0x0:0x0)
    193 ...st_ino     a         ( May vary slightly )
    194 ...st_mode    40700
    195 ...st_nlink   3
    196 ...st_uid     0
    197 ...st_gid     0
    198 ...st_rdev    (0x0:0x0)
    199 ...st_size    0
    200 ...st_atime   Sat Dec 31 09:00:00 1988
    201 ...st_mtime   Sat Dec 31 09:00:00 1988
    202 ...st_ctime   Sat Dec 31 09:00:05 1988
    203 stat( ///////links///// ) returned
    204 st_dev     (0x0:0x0)
    205 ...st_ino     b         ( May vary slightly )
     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
     189stat( /my_mount_point/dir1/ dir1///\ ) returned
     190st_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
     201stat( /my_mount_point///////links///// ) returned
     202st_dev     (0x0:0x0)
     203...st_ino     9
    206204...st_mode    40700
    207205...st_nlink   3
     
    216214stat( dev ) returned
    217215st_dev     (0x0:0x0)
    218 ...st_ino     2         ( May vary slightly )
    219 ...st_mode    40771
     216...st_ino     2
     217...st_mode    40700
    220218...st_nlink   1
    221219...st_uid     0
    222220...st_gid     0
    223221...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
     226stat( dir1///file1\// ) returned
     227st_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
     238stat( dir1/\/file2 ) returned
     239st_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
     250stat( dir1/file3/////\ ) returned
     251st_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
     262stat( dir1/file4 ) returned
     263st_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
     274stat( dir1/dir1/file1 ) returned
     275st_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
     286stat( dir1/dir1/ file1 ) returned
     287st_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
     298stat( dir1 ) returned
     299st_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
     310stat( dir2////// ) returned
     311st_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
     322stat( dir3 ) returned
     323st_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
     334stat( dir4 ) returned
     335st_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
     346stat( dir1/dir1 ) returned
     347st_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)
    224354...st_size    536
    225 ...st_atime   Fri Jan 01 00:00:00 1988
    226 ...st_mtime   Fri Jan 01 00:00:00 1988
    227 ...st_ctime   Fri Jan 01 00:00:00 1988
    228 stat( dir1///file1\// ) returned
    229 st_dev     (0x0:0x0)
    230 ...st_ino     d         ( May vary slightly )
    231 ...st_mode    100000
    232 ...st_nlink   3
    233 ...st_uid     0
    234 ...st_gid     0
    235 ...st_rdev    (0x0:0x0)
    236 ...st_size    0
    237 ...st_atime   Sat Dec 31 09:00:00 1988
    238 ...st_mtime   Sat Dec 31 09:00:00 1988
    239 ...st_ctime   Sat Dec 31 09:00:10 1988
    240 stat( dir1/\/file2 ) returned
    241 st_dev     (0x0:0x0)
    242 ...st_ino     e         ( May vary slightly )
    243 ...st_mode    100000
    244 ...st_nlink   3
    245 ...st_uid     0
    246 ...st_gid     0
    247 ...st_rdev    (0x0:0x0)
    248 ...st_size    0
    249 ...st_atime   Sat Dec 31 09:00:00 1988
    250 ...st_mtime   Sat Dec 31 09:00:00 1988
    251 ...st_ctime   Sat Dec 31 09:00:10 1988
    252 stat( dir1/file3/////\ ) returned
    253 st_dev     (0x0:0x0)
    254 ...st_ino     f         ( May vary slightly )
    255 ...st_mode    100000
    256 ...st_nlink   3
    257 ...st_uid     0
    258 ...st_gid     0
    259 ...st_rdev    (0x0:0x0)
    260 ...st_size    0
    261 ...st_atime   Sat Dec 31 09:00:00 1988
    262 ...st_mtime   Sat Dec 31 09:00:00 1988
    263 ...st_ctime   Sat Dec 31 09:00:10 1988
    264 stat( dir1/file4 ) returned
    265 st_dev     (0x0:0x0)
    266 ...st_ino     10         ( May vary slightly )
    267 ...st_mode    100000
    268 ...st_nlink   3
    269 ...st_uid     0
    270 ...st_gid     0
    271 ...st_rdev    (0x0:0x0)
    272 ...st_size    0
    273 ...st_atime   Sat Dec 31 09:00:00 1988
    274 ...st_mtime   Sat Dec 31 09:00:00 1988
    275 ...st_ctime   Sat Dec 31 09:00:10 1988
    276 stat( dir1/dir1/file1 ) returned
    277 st_dev     (0x0:0x0)
    278 ...st_ino     11         ( May vary slightly )
    279 ...st_mode    100000
    280 ...st_nlink   3
    281 ...st_uid     0
    282 ...st_gid     0
    283 ...st_rdev    (0x0:0x0)
    284 ...st_size    0
    285 ...st_atime   Sat Dec 31 09:00:00 1988
    286 ...st_mtime   Sat Dec 31 09:00:00 1988
    287 ...st_ctime   Sat Dec 31 09:00:10 1988
    288 stat( dir1/dir1/ file1 ) returned
    289 st_dev     (0x0:0x0)
    290 ...st_ino     12         ( May vary slightly )
    291 ...st_mode    100000
    292 ...st_nlink   3
    293 ...st_uid     0
    294 ...st_gid     0
    295 ...st_rdev    (0x0:0x0)
    296 ...st_size    0
    297 ...st_atime   Sat Dec 31 09:00:00 1988
    298 ...st_mtime   Sat Dec 31 09:00:00 1988
    299 ...st_ctime   Sat Dec 31 09:00:10 1988
    300 stat( dir1 ) returned
    301 st_dev     (0x0:0x0)
    302 ...st_ino     5         ( May vary slightly )
    303 ...st_mode    40700
    304 ...st_nlink   3
    305 ...st_uid     0
    306 ...st_gid     0
    307 ...st_rdev    (0x0:0x0)
    308 ...st_size    1608
    309 ...st_atime   Sat Dec 31 09:00:00 1988
    310 ...st_mtime   Sat Dec 31 09:00:00 1988
    311 ...st_ctime   Sat Dec 31 09:00:05 1988
    312 stat( dir2////// ) returned
    313 st_dev     (0x0:0x0)
    314 ...st_ino     6         ( May vary slightly )
    315 ...st_mode    40700
    316 ...st_nlink   3
    317 ...st_uid     0
    318 ...st_gid     0
    319 ...st_rdev    (0x0:0x0)
    320 ...st_size    0
    321 ...st_atime   Sat Dec 31 09:00:00 1988
    322 ...st_mtime   Sat Dec 31 09:00:00 1988
    323 ...st_ctime   Sat Dec 31 09:00:05 1988
    324 stat( dir3 ) returned
    325 st_dev     (0x0:0x0)
    326 ...st_ino     7         ( May vary slightly )
    327 ...st_mode    40700
    328 ...st_nlink   3
    329 ...st_uid     0
    330 ...st_gid     0
    331 ...st_rdev    (0x0:0x0)
    332 ...st_size    0
    333 ...st_atime   Sat Dec 31 09:00:00 1988
    334 ...st_mtime   Sat Dec 31 09:00:00 1988
    335 ...st_ctime   Sat Dec 31 09:00:05 1988
    336 stat( dir4 ) returned
    337 st_dev     (0x0:0x0)
    338 ...st_ino     8         ( May vary slightly )
    339 ...st_mode    40700
    340 ...st_nlink   3
    341 ...st_uid     0
    342 ...st_gid     0
    343 ...st_rdev    (0x0:0x0)
    344 ...st_size    0
    345 ...st_atime   Sat Dec 31 09:00:00 1988
    346 ...st_mtime   Sat Dec 31 09:00:00 1988
    347 ...st_ctime   Sat Dec 31 09:00:05 1988
    348 stat( dir1/dir1 ) returned
    349 st_dev     (0x0:0x0)
    350 ...st_ino     9         ( May vary slightly )
    351 ...st_mode    40700
    352 ...st_nlink   3
    353 ...st_uid     0
    354 ...st_gid     0
    355 ...st_rdev    (0x0:0x0)
    356 ...st_size    536
    357355...st_atime   Sat Dec 31 09:00:00 1988
    358356...st_mtime   Sat Dec 31 09:00:00 1988
     
    360358stat( dir1/ dir1///\ ) returned
    361359st_dev     (0x0:0x0)
    362 ...st_ino     a         ( May vary slightly )
     360...st_ino     8
    363361...st_mode    40700
    364362...st_nlink   3
     
    372370stat( main.c ) returned
    373371st_dev     (0x0:0x0)
    374 ...st_ino     13         ( May vary slightly )
     372...st_ino     11
    375373...st_mode    100000
    376374...st_nlink   1
     
    402400stat( dir1/dir1/../../links/dir1 ) returned
    403401st_dev     (0x0:0x0)
    404 ...st_ino     5         ( May vary slightly )
     402...st_ino     3
    405403...st_mode    40700
    406404...st_nlink   3
     
    414412stat( links/dir2 ) returned
    415413st_dev     (0x0:0x0)
    416 ...st_ino     6         ( May vary slightly )
     414...st_ino     4
    417415...st_mode    40700
    418416...st_nlink   3
     
    426424stat( links/dir3 ) returned
    427425st_dev     (0x0:0x0)
    428 ...st_ino     7         ( May vary slightly )
     426...st_ino     5
    429427...st_mode    40700
    430428...st_nlink   3
     
    438436stat( links/dir4 ) returned
    439437st_dev     (0x0:0x0)
    440 ...st_ino     8         ( May vary slightly )
     438...st_ino     6
    441439...st_mode    40700
    442440...st_nlink   3
     
    450448stat( links/dir1_dir1 ) returned
    451449st_dev     (0x0:0x0)
    452 ...st_ino     9         ( May vary slightly )
     450...st_ino     7
    453451...st_mode    40700
    454452...st_nlink   3
     
    462460stat( links/dir1_ dir1 ) returned
    463461st_dev     (0x0:0x0)
    464 ...st_ino     a         ( May vary slightly )
     462...st_ino     8
    465463...st_mode    40700
    466464...st_nlink   3
     
    474472stat( links/../links/../links/links ) returned
    475473st_dev     (0x0:0x0)
    476 ...st_ino     b         ( May vary slightly )
     474...st_ino     9
    477475...st_mode    40700
    478476...st_nlink   3
     
    486484stat( links/dir1_file1 ) returned
    487485st_dev     (0x0:0x0)
    488 ...st_ino     d         ( May vary slightly )
     486...st_ino     b
    489487...st_mode    100000
    490488...st_nlink   3
     
    498496stat( links/dir1_file2 ) returned
    499497st_dev     (0x0:0x0)
    500 ...st_ino     e         ( May vary slightly )
     498...st_ino     c
    501499...st_mode    100000
    502500...st_nlink   3
     
    510508stat( links/dir1_file3 ) returned
    511509st_dev     (0x0:0x0)
    512 ...st_ino     f         ( May vary slightly )
     510...st_ino     d
    513511...st_mode    100000
    514512...st_nlink   3
     
    522520stat( links/dir1_file4 ) returned
    523521st_dev     (0x0:0x0)
    524 ...st_ino     10         ( May vary slightly )
     522...st_ino     e
    525523...st_mode    100000
    526524...st_nlink   3
     
    534532stat( links/dir1_dir1_f1 ) returned
    535533st_dev     (0x0:0x0)
    536 ...st_ino     11         ( May vary slightly )
     534...st_ino     f
    537535...st_mode    100000
    538536...st_nlink   3
     
    546544stat( links/dir1_dir1 f1 ) returned
    547545st_dev     (0x0:0x0)
    548 ...st_ino     12         ( May vary slightly )
     546...st_ino     10
    549547...st_mode    100000
    550548...st_nlink   3
     
    558556stat( links/links/links/links_dir1 ) returned
    559557st_dev     (0x0:0x0)
    560 ...st_ino     5         ( May vary slightly )
     558...st_ino     3
    561559...st_mode    40700
    562560...st_nlink   3
     
    570568stat( links//links_dir2 ) returned
    571569st_dev     (0x0:0x0)
    572 ...st_ino     6         ( May vary slightly )
     570...st_ino     4
    573571...st_mode    40700
    574572...st_nlink   3
     
    582580stat( links//links_dir3 ) returned
    583581st_dev     (0x0:0x0)
    584 ...st_ino     7         ( May vary slightly )
     582...st_ino     5
    585583...st_mode    40700
    586584...st_nlink   3
     
    594592stat( links//links_dir4 ) returned
    595593st_dev     (0x0:0x0)
    596 ...st_ino     8         ( May vary slightly )
     594...st_ino     6
    597595...st_mode    40700
    598596...st_nlink   3
     
    606604stat( links//links_dir1_d1 ) returned
    607605st_dev     (0x0:0x0)
    608 ...st_ino     9         ( May vary slightly )
     606...st_ino     7
    609607...st_mode    40700
    610608...st_nlink   3
     
    618616stat( links//links_dir1 d1 ) returned
    619617st_dev     (0x0:0x0)
    620 ...st_ino     a         ( May vary slightly )
     618...st_ino     8
    621619...st_mode    40700
    622620...st_nlink   3
     
    630628stat( links//links_links ) returned
    631629st_dev     (0x0:0x0)
    632 ...st_ino     b         ( May vary slightly )
     630...st_ino     9
    633631...st_mode    40700
    634632...st_nlink   3
     
    642640stat( links///links_d1_file1 ) returned
    643641st_dev     (0x0:0x0)
    644 ...st_ino     d         ( May vary slightly )
     642...st_ino     b
    645643...st_mode    100000
    646644...st_nlink   3
     
    654652stat( links///links_d1_file2 ) returned
    655653st_dev     (0x0:0x0)
    656 ...st_ino     e         ( May vary slightly )
     654...st_ino     c
    657655...st_mode    100000
    658656...st_nlink   3
     
    666664stat( links///links_d1_file3 ) returned
    667665st_dev     (0x0:0x0)
    668 ...st_ino     f         ( May vary slightly )
     666...st_ino     d
    669667...st_mode    100000
    670668...st_nlink   3
     
    678676stat( links///links_d1_file4 ) returned
    679677st_dev     (0x0:0x0)
    680 ...st_ino     10         ( May vary slightly )
     678...st_ino     e
    681679...st_mode    100000
    682680...st_nlink   3
     
    690688stat( links///links_d1_d1_f1 ) returned
    691689st_dev     (0x0:0x0)
    692 ...st_ino     11         ( May vary slightly )
     690...st_ino     f
    693691...st_mode    100000
    694692...st_nlink   3
     
    702700stat( links///links_r1_d1 f1 ) returned
    703701st_dev     (0x0:0x0)
    704 ...st_ino     12         ( May vary slightly )
    705 ...st_mode    100000
    706 ...st_nlink   3
    707 ...st_uid     0
    708 ...st_gid     0
    709 ...st_rdev    (0x0:0x0)
    710 ...st_size    0
    711 ...st_atime   Sat Dec 31 09:00:00 1988
    712 ...st_mtime   Sat Dec 31 09:00:00 1988
    713 ...st_ctime   Sat Dec 31 09:00:10 1988
    714 chmod of /dir1/dir1 to Read/Write
     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
     712chmod of /my_mount_point/dir1/dir1 to Read/Write
    715713Doing the stat() on all the bad paths
    716 stat( /links/ENAMETOOLONG__________________________ ) returned : File or path name too long
    717 stat( /dir1/file4/NOTADIR ) returned : Not a directory
    718 stat( /dir1/dir1/EACCES__ ) returned : Permission denied
    719 Making file /links/ENAMETOOLONG__________________________ : File or path name too long
    720 Making file /dir1/file4/NOTADIR : Not a directory
    721 Making file /dir1/dir1/EACCES__ : Permission denied
    722 Return /dir1/dir1 to RWX
    723 Making file /symlinks/a_file_symlink
    724 Verify with readlink
    725 Making file /symlinks/a_dir_symlink
    726 Verify with readlink
    727 Making file /symlinks/a_link_symlink
     714stat( /my_mount_point/links/ENAMETOOLONG__________________________ ) returned : File or path name too long
     715stat( /my_mount_point/dir1/file4/NOTADIR ) returned : Not a directory
     716stat( /my_mount_point/dir1/dir1/EACCES__ ) returned : Permission denied
     717Making file /my_mount_point/links/ENAMETOOLONG__________________________ : File or path name too long
     718Making file /my_mount_point/dir1/file4/NOTADIR : Not a directory
     719Making file /my_mount_point/dir1/dir1/EACCES__ : Permission denied
     720Return /my_mount_point/dir1/dir1 to RWX
     721Making file /my_mount_point/symlinks/a_file_symlink
     722Verify with readlink
     723Making file /my_mount_point/symlinks/a_dir_symlink
     724Verify with readlink
     725Making file /my_mount_point/symlinks/a_link_symlink
    728726Verify with readlink
    729727Making file ../symlinks/no_file
    730728Verify with readlink
    731 Making file /symlinks/a_dir_symlink/a_file_symlink
    732 Verify with readlink
    733 Making file /symlinks/links
    734 Verify with readlink
    735 stat( /symlinks/a_file_symlink ) returned
    736 st_dev     (0x0:0x0)
    737 ...st_ino     d         ( May vary slightly )
    738 ...st_mode    100000
    739 ...st_nlink   3
    740 ...st_uid     0
    741 ...st_gid     0
    742 ...st_rdev    (0x0:0x0)
    743 ...st_size    0
    744 ...st_atime   Sat Dec 31 09:00:00 1988
    745 ...st_mtime   Sat Dec 31 09:00:00 1988
    746 ...st_ctime   Sat Dec 31 09:00:10 1988
    747 stat( /symlinks/a_dir_symlink ) returned
    748 st_dev     (0x0:0x0)
    749 ...st_ino     5         ( May vary slightly )
     729Making file /my_mount_point/symlinks/a_dir_symlink/a_file_symlink
     730Verify with readlink
     731Making file /my_mount_point/symlinks/links
     732Verify with readlink
     733stat( /my_mount_point/symlinks/a_file_symlink ) returned
     734st_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
     745stat( /my_mount_point/symlinks/a_dir_symlink ) returned
     746st_dev     (0x0:0x0)
     747...st_ino     3
    750748...st_mode    40700
    751749...st_nlink   3
     
    757755...st_mtime   Sat Dec 31 09:00:00 1988
    758756...st_ctime   Sat Dec 31 09:00:05 1988
    759 stat( /symlinks/a_link_symlink ) returned
    760 st_dev     (0x0:0x0)
    761 ...st_ino     5         ( May vary slightly )
     757stat( /my_mount_point/symlinks/a_link_symlink ) returned
     758st_dev     (0x0:0x0)
     759...st_ino     3
    762760...st_mode    40700
    763761...st_nlink   3
     
    770768...st_ctime   Sat Dec 31 09:00:05 1988
    771769stat( ../symlinks/no_file ) returned : No such file or directory
    772 stat( /symlinks/a_dir_symlink/a_file_symlink ) returned
    773 st_dev     (0x0:0x0)
    774 ...st_ino     5         ( May vary slightly )
     770stat( /my_mount_point/symlinks/a_dir_symlink/a_file_symlink ) returned
     771st_dev     (0x0:0x0)
     772...st_ino     3
    775773...st_mode    40700
    776774...st_nlink   3
     
    800798Making file 9
    801799Verify with readlink
    802 stat( 1 ) returned
    803 st_dev     (0x0:0x0)
    804 ...st_ino     c         ( May vary slightly )
    805 ...st_mode    40700
    806 ...st_nlink   1
    807 ...st_uid     0
    808 ...st_gid     0
    809 ...st_rdev    (0x0:0x0)
    810 ...st_size    1340
    811 ...st_atime   Sat Dec 31 09:00:00 1988
    812 ...st_mtime   Sat Dec 31 09:00:00 1988
    813 ...st_ctime   Sat Dec 31 09:00:00 1988
    814 stat( 2 ) returned
    815 st_dev     (0x0:0x0)
    816 ...st_ino     c         ( May vary slightly )
    817 ...st_mode    40700
    818 ...st_nlink   1
    819 ...st_uid     0
    820 ...st_gid     0
    821 ...st_rdev    (0x0:0x0)
    822 ...st_size    1340
    823 ...st_atime   Sat Dec 31 09:00:00 1988
    824 ...st_mtime   Sat Dec 31 09:00:00 1988
    825 ...st_ctime   Sat Dec 31 09:00:00 1988
    826 stat( 3 ) returned
    827 st_dev     (0x0:0x0)
    828 ...st_ino     c         ( May vary slightly )
    829 ...st_mode    40700
    830 ...st_nlink   1
    831 ...st_uid     0
    832 ...st_gid     0
    833 ...st_rdev    (0x0:0x0)
    834 ...st_size    1340
    835 ...st_atime   Sat Dec 31 09:00:00 1988
    836 ...st_mtime   Sat Dec 31 09:00:00 1988
    837 ...st_ctime   Sat Dec 31 09:00:00 1988
    838 stat( 4 ) returned
    839 st_dev     (0x0:0x0)
    840 ...st_ino     c         ( May vary slightly )
    841 ...st_mode    40700
    842 ...st_nlink   1
    843 ...st_uid     0
    844 ...st_gid     0
    845 ...st_rdev    (0x0:0x0)
    846 ...st_size    1340
    847 ...st_atime   Sat Dec 31 09:00:00 1988
    848 ...st_mtime   Sat Dec 31 09:00:00 1988
    849 ...st_ctime   Sat Dec 31 09:00:00 1988
    850 stat( 5 ) returned : Too many symbolic links
     800stat( 1 ) returned : No such file or directory
     801stat( 2 ) returned : No such file or directory
     802stat( 3 ) returned : No such file or directory
     803stat( 4 ) returned : No such file or directory
     804stat( 5 ) returned : No such file or directory
    851805stat( 6 ) returned : Too many symbolic links
    852806stat( 7 ) returned : Too many symbolic links
     
    855809Pass an invalid mode to chmod should fail with EPERM
    856810chdir to a file should fail with ENOTDIR
    857 Verify RWX permission on /dir1 via access
    858 chmod of /dir1 to Read/Write
     811Verify RWX permission on /my_mount_point/dir1 via access
     812chmod of /my_mount_point/dir1 to Read/Write
    859813chmod fred should fail with ENOENT
    860 Create under /dir1 should fail with EACCES
    861 chdir to /dir1/dir1 should fail with EACCES
     814Create under /my_mount_point/dir1 should fail with EACCES
     815chdir to /my_mount_point/dir1/dir1 should fail with EACCES
    862816Stat with a NULL buffer should fail with EFAULT
    863 chmod of /dir1 to Read/Write
    864 mkdir /dir1/BADNAME should fail with EACCESS
    865 /dir1 Should exist ( access )
    866 /dir1 Should have read  permission( access )
    867 /dir1 Should have write permission( access )
    868 /dir1 Should not have execute permission( access )
    869 Restore /dir1 to RWX
    870 chdir to /
    871 Remove /./././dir1/ dir1
    872 stat( /./././dir1/ dir1 ) returned : No such file or directory
     817chmod of /my_mount_point/dir1 to Read/Write
     818mkdir /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 )
     823Restore /my_mount_point/dir1 to RWX
     824chdir to /my_mount_point
     825Remove /./././my_mount_point/dir1/ dir1
     826stat( /./././my_mount_point/dir1/ dir1 ) returned : No such file or directory
    873827stat( links/dir1_ dir1 ) returned
    874828st_dev     (0x0:0x0)
    875 ...st_ino     a         ( May vary slightly )
     829...st_ino     8
    876830...st_mode    40700
    877831...st_nlink   2
     
    885839stat( links//links_dir1 d1 ) returned
    886840st_dev     (0x0:0x0)
    887 ...st_ino     a         ( May vary slightly )
     841...st_ino     8
    888842...st_mode    40700
    889843...st_nlink   2
     
    899853mkdir ../t should fail with ENOENT
    900854mkdir t
    901 chdir to /
     855chdir to /my_mount_point
    902856rmdir links/dir1_ dir1 should fail with ENOTDIR
    903857unlink links/dir1_ dir1
     
    907861Attempting to mount IMFS file system at /dir1/my_mount_point
    908862rmdir /dir1/my_mount_point should fail with EBUSY
    909 Unmount /dir1/my_mount_point
    910 chmod of ////dir1///file1\// to group and other execute
    911 Open ////dir1///file1\// for write should fail with EACCES
    912 chmod of /dir4 to User Execute and Read
    913 Mkdir of /dir4/NewFile should fail with EACCES
     863Unmount /my_mount_point/dir1/my_mount_point
     864chmod of /////my_mount_point/dir1///file1\// to group and other execute
     865Open /////my_mount_point/dir1///file1\// for write should fail with EACCES
     866chmod of /my_mount_point/dir4 to User Execute and Read
     867Mkdir of /my_mount_point/dir4/NewFile should fail with EACCES
    914868Making too many hard links.
    915869Making file /LinkName1
     
    922876Making file /LinkName8
    923877pass fstat a null pointer should fail with EFAULT
    924 chdir to /
    925 Change group of ////dir1///file1\//
    926 stat( ////dir1///file1\// ) returned
    927 st_dev     (0x0:0x0)
    928 ...st_ino     d         ( May vary slightly )
     878chdir to /my_mount_point
     879Change group of /////my_mount_point/dir1///file1\//
     880stat( /////my_mount_point/dir1///file1\// ) returned
     881st_dev     (0x0:0x0)
     882...st_ino     b
    929883...st_mode    100011
    930884...st_nlink   3
     
    936890...st_mtime   Sat Dec 31 09:00:00 1988
    937891...st_ctime   Sat Dec 31 09:00:25 1988
    938 Change owner of ////dir1///file1\//
    939 stat( ////dir1///file1\// ) returned
    940 st_dev     (0x0:0x0)
    941 ...st_ino     d         ( May vary slightly )
     892Change owner of /////my_mount_point/dir1///file1\//
     893stat( /////my_mount_point/dir1///file1\// ) returned
     894st_dev     (0x0:0x0)
     895...st_ino     b
    942896...st_mode    100011
    943897...st_nlink   3
     
    949903...st_mtime   Sat Dec 31 09:00:00 1988
    950904...st_ctime   Sat Dec 31 09:00:25 1988
    951 Change group of /dir1/file2
    952 stat( /dir1/file2 ) returned
    953 st_dev     (0x0:0x0)
    954 ...st_ino     e         ( May vary slightly )
    955 ...st_mode    100000
    956 ...st_nlink   3
    957 ...st_uid     0
    958 ...st_gid     1
    959 ...st_rdev    (0x0:0x0)
    960 ...st_size    0
    961 ...st_atime   Sat Dec 31 09:00:00 1988
    962 ...st_mtime   Sat Dec 31 09:00:00 1988
    963 ...st_ctime   Sat Dec 31 09:00:25 1988
    964 Change owner of /dir1/file2
    965 stat( /dir1/file2 ) returned
    966 st_dev     (0x0:0x0)
    967 ...st_ino     e         ( May vary slightly )
     905Change group of /my_mount_point/dir1/file2
     906stat( /my_mount_point/dir1/file2 ) returned
     907st_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
     918Change owner of /my_mount_point/dir1/file2
     919stat( /my_mount_point/dir1/file2 ) returned
     920st_dev     (0x0:0x0)
     921...st_ino     c
    968922...st_mode    100000
    969923...st_nlink   3
     
    975929...st_mtime   Sat Dec 31 09:00:00 1988
    976930...st_ctime   Sat Dec 31 09:00:25 1988
    977 Change group of /dir1/file3
    978 stat( /dir1/file3 ) returned
    979 st_dev     (0x0:0x0)
    980 ...st_ino     f         ( May vary slightly )
    981 ...st_mode    100000
    982 ...st_nlink   3
    983 ...st_uid     0
    984 ...st_gid     1
    985 ...st_rdev    (0x0:0x0)
    986 ...st_size    0
    987 ...st_atime   Sat Dec 31 09:00:00 1988
    988 ...st_mtime   Sat Dec 31 09:00:00 1988
    989 ...st_ctime   Sat Dec 31 09:00:25 1988
    990 Change owner of /dir1/file3
    991 stat( /dir1/file3 ) returned
    992 st_dev     (0x0:0x0)
    993 ...st_ino     f         ( May vary slightly )
     931Change group of /my_mount_point/dir1/file3
     932stat( /my_mount_point/dir1/file3 ) returned
     933st_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
     944Change owner of /my_mount_point/dir1/file3
     945stat( /my_mount_point/dir1/file3 ) returned
     946st_dev     (0x0:0x0)
     947...st_ino     d
    994948...st_mode    100000
    995949...st_nlink   3
     
    1001955...st_mtime   Sat Dec 31 09:00:00 1988
    1002956...st_ctime   Sat Dec 31 09:00:25 1988
    1003 Change group of /dir1/file4
    1004 stat( /dir1/file4 ) returned
    1005 st_dev     (0x0:0x0)
    1006 ...st_ino     10         ( May vary slightly )
    1007 ...st_mode    100000
    1008 ...st_nlink   3
    1009 ...st_uid     0
    1010 ...st_gid     1
    1011 ...st_rdev    (0x0:0x0)
    1012 ...st_size    0
    1013 ...st_atime   Sat Dec 31 09:00:00 1988
    1014 ...st_mtime   Sat Dec 31 09:00:00 1988
    1015 ...st_ctime   Sat Dec 31 09:00:25 1988
    1016 Change owner of /dir1/file4
    1017 stat( /dir1/file4 ) returned
    1018 st_dev     (0x0:0x0)
    1019 ...st_ino     10         ( May vary slightly )
     957Change group of /my_mount_point/dir1/file4
     958stat( /my_mount_point/dir1/file4 ) returned
     959st_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
     970Change owner of /my_mount_point/dir1/file4
     971stat( /my_mount_point/dir1/file4 ) returned
     972st_dev     (0x0:0x0)
     973...st_ino     e
    1020974...st_mode    100000
    1021975...st_nlink   3
     
    1027981...st_mtime   Sat Dec 31 09:00:00 1988
    1028982...st_ctime   Sat Dec 31 09:00:25 1988
    1029 Change group of /dir1/dir1/file1
    1030 stat( /dir1/dir1/file1 ) returned
    1031 st_dev     (0x0:0x0)
    1032 ...st_ino     11         ( May vary slightly )
    1033 ...st_mode    100000
    1034 ...st_nlink   3
    1035 ...st_uid     0
    1036 ...st_gid     1
    1037 ...st_rdev    (0x0:0x0)
    1038 ...st_size    0
    1039 ...st_atime   Sat Dec 31 09:00:00 1988
    1040 ...st_mtime   Sat Dec 31 09:00:00 1988
    1041 ...st_ctime   Sat Dec 31 09:00:25 1988
    1042 Change owner of /dir1/dir1/file1
    1043 stat( /dir1/dir1/file1 ) returned
    1044 st_dev     (0x0:0x0)
    1045 ...st_ino     11         ( May vary slightly )
     983Change group of /my_mount_point/dir1/dir1/file1
     984stat( /my_mount_point/dir1/dir1/file1 ) returned
     985st_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
     996Change owner of /my_mount_point/dir1/dir1/file1
     997stat( /my_mount_point/dir1/dir1/file1 ) returned
     998st_dev     (0x0:0x0)
     999...st_ino     f
    10461000...st_mode    100000
    10471001...st_nlink   3
     
    10531007...st_mtime   Sat Dec 31 09:00:00 1988
    10541008...st_ctime   Sat Dec 31 09:00:25 1988
    1055 Change group of ../../..//dir1/./././dir1/ file1
    1056 stat( ../../..//dir1/./././dir1/ file1 ) returned
    1057 st_dev     (0x0:0x0)
    1058 ...st_ino     12         ( May vary slightly )
    1059 ...st_mode    100000
    1060 ...st_nlink   3
    1061 ...st_uid     0
    1062 ...st_gid     1
    1063 ...st_rdev    (0x0:0x0)
    1064 ...st_size    0
    1065 ...st_atime   Sat Dec 31 09:00:00 1988
    1066 ...st_mtime   Sat Dec 31 09:00:00 1988
    1067 ...st_ctime   Sat Dec 31 09:00:25 1988
    1068 Change owner of ../../..//dir1/./././dir1/ file1
    1069 stat( ../../..//dir1/./././dir1/ file1 ) returned
    1070 st_dev     (0x0:0x0)
    1071 ...st_ino     12         ( May vary slightly )
     1009Change group of ../../..//my_mount_point/dir1/./././dir1/ file1
     1010stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
     1011st_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
     1022Change owner of ../../..//my_mount_point/dir1/./././dir1/ file1
     1023stat( ../../..//my_mount_point/dir1/./././dir1/ file1 ) returned
     1024st_dev     (0x0:0x0)
     1025...st_ino     10
    10721026...st_mode    100000
    10731027...st_nlink   3
     
    10821036stat( main.c ) returned
    10831037st_dev     (0x0:0x0)
    1084 ...st_ino     13         ( May vary slightly )
     1038...st_ino     11
    10851039...st_mode    100000
    10861040...st_nlink   1
     
    10951049stat( main.c ) returned
    10961050st_dev     (0x0:0x0)
    1097 ...st_ino     13         ( May vary slightly )
     1051...st_ino     11
    10981052...st_mode    100000
    10991053...st_nlink   1
     
    11081062stat( dir1/dir1/../../links/dir1 ) returned
    11091063st_dev     (0x0:0x0)
    1110 ...st_ino     5         ( May vary slightly )
     1064...st_ino     3
    11111065...st_mode    40700
    11121066...st_nlink   3
     
    11231077stat( links/dir2 ) returned
    11241078st_dev     (0x0:0x0)
    1125 ...st_ino     6         ( May vary slightly )
     1079...st_ino     4
    11261080...st_mode    40700
    11271081...st_nlink   3
     
    11361090stat( links/dir2 ) returned
    11371091st_dev     (0x0:0x0)
    1138 ...st_ino     6         ( May vary slightly )
     1092...st_ino     4
    11391093...st_mode    40700
    11401094...st_nlink   3
     
    11491103stat( links/dir3 ) returned
    11501104st_dev     (0x0:0x0)
    1151 ...st_ino     7         ( May vary slightly )
     1105...st_ino     5
    11521106...st_mode    40700
    11531107...st_nlink   3
     
    11621116stat( links/dir3 ) returned
    11631117st_dev     (0x0:0x0)
    1164 ...st_ino     7         ( May vary slightly )
     1118...st_ino     5
    11651119...st_mode    40700
    11661120...st_nlink   3
     
    11751129stat( links/dir4 ) returned
    11761130st_dev     (0x0:0x0)
    1177 ...st_ino     8         ( May vary slightly )
     1131...st_ino     6
    11781132...st_mode    40500
    11791133...st_nlink   3
     
    11881142stat( links/dir4 ) returned
    11891143st_dev     (0x0:0x0)
    1190 ...st_ino     8         ( May vary slightly )
     1144...st_ino     6
    11911145...st_mode    40500
    11921146...st_nlink   3
     
    12011155stat( links/dir1_dir1 ) returned
    12021156st_dev     (0x0:0x0)
    1203 ...st_ino     9         ( May vary slightly )
     1157...st_ino     7
    12041158...st_mode    40700
    12051159...st_nlink   3
     
    12141168stat( links/dir1_dir1 ) returned
    12151169st_dev     (0x0:0x0)
    1216 ...st_ino     9         ( May vary slightly )
     1170...st_ino     7
    12171171...st_mode    40700
    12181172...st_nlink   3
     
    12311185stat( links/../links/../links/links ) returned
    12321186st_dev     (0x0:0x0)
    1233 ...st_ino     b         ( May vary slightly )
     1187...st_ino     9
    12341188...st_mode    40700
    12351189...st_nlink   3
  • testsuites/psxtests/psxstat/test.c

    r1e566bbb r2e3ce06  
    2727
    2828#define MAXSYMLINK 5   /* There needs to be a better way of getting this. */
     29#define TIMEOUT_VALUE  ( 5 * TICKS_PER_SECOND )
    2930
    3031
     
    3435
    3536char *Files[] = {
    36   "////dir1/\\//file1\\\\//",
    37   "/dir1/file2",
    38   "/dir1/file3",
    39   "/dir1/file4",
    40   "/dir1/dir1/file1",
    41   "../../..//dir1/./././dir1/ file1",
     37  "/////my_mount_point/dir1/\\//file1\\\\//",
     38  "/my_mount_point/dir1/file2",
     39  "/my_mount_point/dir1/file3",
     40  "/my_mount_point/dir1/file4",
     41  "/my_mount_point/dir1/dir1/file1",
     42  "../../..//my_mount_point/dir1/./././dir1/ file1",
    4243  "main.c",
    4344  0
     
    4950
    5051char *Directories[] = {
    51   "/dir1",
    52   "/dir2",
    53   "/dir3",
    54   "/dir4",
    55   "/dir1/dir1",
    56   "/./././dir1/ dir1",
    57   "/./././links", 
    58   "///dir1/dir1/../../dir1/../symlinks/////",
     52  "/my_mount_point/dir1",
     53  "/my_mount_point/dir2",
     54  "/my_mount_point/dir3",
     55  "/my_mount_point/dir4",
     56  "/my_mount_point/dir1/dir1",
     57  "/./././my_mount_point/dir1/ dir1",
     58  "/./././my_mount_point/links", 
     59  "///my_mount_point/dir1/dir1/../../dir1/../symlinks/////",
    5960  0
    6061};
     
    103104
    104105char *SymLinks[]= {
    105   "/symlinks/a_file_symlink",
    106   "/symlinks/a_dir_symlink",
    107   "/symlinks/a_link_symlink",
     106  "/my_mount_point/symlinks/a_file_symlink",
     107  "/my_mount_point/symlinks/a_dir_symlink",
     108  "/my_mount_point/symlinks/a_link_symlink",
    108109  "../symlinks/no_file",
    109   "/symlinks/a_dir_symlink/a_file_symlink",
     110  "/my_mount_point/symlinks/a_dir_symlink/a_file_symlink",
    110111  0
    111112};
     
    116117
    117118char *Good_absolute_paths[] = {
    118   "/dev",
    119   "////dir1/\\//file1\\\\//",
    120   "/dir1/\\\\/file2",
    121   "/dir1/file3/////\\\\\\",
    122   "/dir1/file4",
    123   "/dir1/dir1/file1",
    124   "/dir1/dir1/ file1",
    125   "/dir1",
    126   "/dir2//////\\",
    127   "/dir3",
    128   "/dir4",
    129   "/dir1/dir1",
    130   "/dir1/ dir1///\\\\",
    131   "/\\/\\/\\/\\/\\/\\/links\\/\\/\\/\\/\\/\\",
     119  "/my_mount_point/dev",
     120  "////my_mount_point/dir1/\\//file1\\\\//",
     121  "/my_mount_point/dir1/\\\\/file2",
     122  "/my_mount_point/dir1/file3/////\\\\\\",
     123  "/my_mount_point/dir1/file4",
     124  "/my_mount_point/dir1/dir1/file1",
     125  "/my_mount_point/dir1/dir1/ file1",
     126  "/my_mount_point/dir1",
     127  "/my_mount_point/dir2//////\\",
     128  "/my_mount_point/dir3",
     129  "/my_mount_point/dir4",
     130  "/my_mount_point/dir1/dir1",
     131  "/my_mount_point/dir1/ dir1///\\\\",
     132  "/my_mount_point/\\/\\/\\/\\/\\/\\/links\\/\\/\\/\\/\\/\\",
    132133  0
    133134};
     
    135136
    136137char *Bad_paths[] = {
    137   "/links/ENAMETOOLONG__________________________",
    138   "/dir1/file4/NOTADIR",
    139   "/dir1/dir1/EACCES__",
     138  "/my_mount_point/links/ENAMETOOLONG__________________________",
     139  "/my_mount_point/dir1/file4/NOTADIR",
     140  "/my_mount_point/dir1/dir1/EACCES__",
    140141  0
    141142};
     
    387388 make_a_symlink( "No_File",            SymLinks[3] );
    388389 make_a_symlink( SymLinks[1],          SymLinks[4] );
    389  make_a_symlink( "//links",            "/symlinks/links" );
     390 make_a_symlink( "//my_mount_point/links","/my_mount_point/symlinks/links" );
    390391
    391392 stat_a_file( SymLinks[0] );
     
    561562  assert( status == 0 );
    562563
    563   printf("chdir to / \n");
    564   status = chdir( "/" );
     564  printf("chdir to /my_mount_point \n");
     565  status = chdir( "/my_mount_point" );
    565566  assert( status == 0 );
    566567
     
    610611  assert( status == 0 );
    611612
    612   printf("chdir to / \n");
    613   status = chdir( "/" );
     613  printf("chdir to /my_mount_point\n");
     614  status = chdir( "/my_mount_point" );
    614615  assert( status == 0 );
    615616
     
    652653     RTEMS_FILESYSTEM_READ_WRITE,
    653654     NULL,
    654      "/dir1/my_mount_point" );
     655     "/my_mount_point/dir1/my_mount_point" );
    655656  assert( status == 0 );
    656657
    657658  printf("rmdir /dir1/my_mount_point should fail with EBUSY\n");
    658   status = rmdir ("/dir1/my_mount_point" );
     659  status = rmdir ("/my_mount_point/dir1/my_mount_point" );
    659660  assert( status == -1 );
    660661  assert( errno == EBUSY );
    661662
    662   printf( "Unmount /dir1/my_mount_point\n");
    663   status = unmount( "/dir1/my_mount_point" );
     663  printf( "Unmount /my_mount_point/dir1/my_mount_point\n");
     664  status = unmount( "/my_mount_point/dir1/my_mount_point" );
    664665  assert( status == 0 );
    665666
     
    699700   */
    700701
    701   printf("chdir to / \n");
    702   status = chdir( "/" );
     702  printf("chdir to /my_mount_point \n");
     703  status = chdir( "/my_mount_point" );
    703704  assert( status == 0 );
    704705
     
    728729#endif
    729730{
    730   rtems_status_code status;
    731   rtems_time_of_day time;
     731  rtems_status_code                    status;
     732  rtems_time_of_day                    time;
     733  rtems_filesystem_mount_table_entry_t *mt_entry;
    732734
    733735  puts( "\n\n*** STAT TEST 01 ***" );
     
    735737  build_time( &time, 12, 31, 1988, 9, 0, 0, 0 );
    736738  status = rtems_clock_set( &time );
     739  Show_Time();
     740
     741  /*
     742   * Create and mount another version of the filesyste.
     743   * This allows expected node id's to be consistant across
     744   * platforms and bsp's.
     745   */
     746
     747  status = mkdir("/my_mount_point",  S_IRWXU );
     748  assert( status == 0 );
     749  status = mount(
     750     &mt_entry,
     751     &IMFS_ops,
     752     RTEMS_FILESYSTEM_READ_WRITE,
     753     NULL,
     754     "my_mount_point" );
     755  assert( status == 0 );
     756  status = chdir( "/my_mount_point" );
     757  assert( status == 0 );
     758  status = mkdir("dev",  S_IRWXU );
     759  assert( status == 0 );
     760
    737761
    738762  /*
    739763   *  Create the files and directories for the test.
    740764   */
    741   Show_Time();
    742765
    743766  make_multiple_directories( Directories );
     
    746769  make_multiple_links( Files,          Links_to_Files );
    747770
    748   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     771  status = rtems_task_wake_after( TIMEOUT_VALUE );
    749772  make_multiple_links( Links_to_Dirs,  Links_to_dirlinks );
    750   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     773  status = rtems_task_wake_after( TIMEOUT_VALUE );
    751774  make_multiple_links( Links_to_Files, Links_to_filelinks );
    752775
    753   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     776  status = rtems_task_wake_after( TIMEOUT_VALUE );
    754777
    755778  /*
     
    810833  make_many_symlinks( "/symlinks", 10 );
    811834
    812   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     835  status = rtems_task_wake_after( TIMEOUT_VALUE );
    813836  Cause_faults();
    814837
    815   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     838  status = rtems_task_wake_after( TIMEOUT_VALUE );
    816839  chown_multiple_files( Files );
    817840
    818   status = rtems_task_wake_after( 5 * TICKS_PER_SECOND );
     841  status = rtems_task_wake_after( TIMEOUT_VALUE );
    819842  chown_multiple_files( Links_to_Dirs );
    820843 
Note: See TracChangeset for help on using the changeset viewer.