[3f42281e] | 1 | sparc-rtems4.11-run is /opt/rtems-4.11/bin/sparc-rtems4.11-run |
---|
[c2f9b97] | 2 | |
---|
| 3 | |
---|
| 4 | *** FILE TEST 1 *** |
---|
| 5 | *************** Dump of Entire IMFS *************** |
---|
| 6 | / |
---|
[9060699] | 7 | ....dev/ |
---|
| 8 | ........console (device 0, 0) |
---|
[3f42281e] | 9 | ........console_b (device 0, 1) |
---|
[c2f9b97] | 10 | *************** End of Dump *************** |
---|
| 11 | stat of /dev/console |
---|
[3f42281e] | 12 | ....st_dev (0xfffe:0x0) |
---|
[78edd44] | 13 | ....st_ino 3 may vary by small amount |
---|
[514a3fe] | 14 | ....mode = 00020755 |
---|
[9060699] | 15 | ....nlink = 1 |
---|
| 16 | ....uid = 0 |
---|
| 17 | ....gid = 0 |
---|
[1fbd283c] | 18 | ....atime = Fri Jan 1 00:00:00 1988 |
---|
| 19 | ....mtime = Fri Jan 1 00:00:00 1988 |
---|
| 20 | ....ctime = Fri Jan 1 00:00:00 1988 |
---|
[514a3fe] | 21 | ....st_blksize 0 |
---|
| 22 | ....st_blocks 0 |
---|
[c2f9b97] | 23 | |
---|
| 24 | mkdir /dev/tty |
---|
| 25 | |
---|
| 26 | mkdir /usr |
---|
| 27 | mkdir /etc |
---|
| 28 | mkdir /tmp |
---|
| 29 | mkdir /tmp/.. |
---|
| 30 | mkdir /tmp/ |
---|
| 31 | mkdir /j/j1 |
---|
| 32 | mkdir tmp |
---|
| 33 | |
---|
| 34 | rmdir /usr |
---|
[912f74ae] | 35 | rmdir /dev |
---|
| 36 | rmdir /fred |
---|
| 37 | mknod /dev/test_console |
---|
| 38 | mknod /dev/tty/S3 |
---|
| 39 | mknod /etc/passwd |
---|
| 40 | mkdir /tmp/my_dir |
---|
| 41 | mkfifo /c/my_dir |
---|
[c2f9b97] | 42 | mkdir /etc/passwd/j |
---|
| 43 | open /tmp/joel - should fail with ENOENT |
---|
| 44 | open /tmp/j |
---|
| 45 | open returned file descriptor 3 |
---|
| 46 | close /tmp/j |
---|
[912f74ae] | 47 | close /tmp/j again |
---|
[c2f9b97] | 48 | unlink /tmp/j |
---|
[912f74ae] | 49 | unlink /tmp |
---|
| 50 | create and close /tmp/tom |
---|
| 51 | Attempt to recreate /tmp/tom |
---|
| 52 | create /tmp/john |
---|
| 53 | tcdrain /tmp/john |
---|
| 54 | mknod /tmp/joel |
---|
[c2f9b97] | 55 | (0)the first write!!! |
---|
| 56 | |
---|
[514a3fe] | 57 | rename /tmp/joel to /tmp/drjoel |
---|
| 58 | rename /tmp/drjoel to /tmp/joel |
---|
| 59 | rename /tmp/drjoel to /tmp/joel - Should result in an error since old path is not valid |
---|
| 60 | rename /tmp/joel to /tmp/drjoel/joel - Should result in an error since new path is not valid |
---|
| 61 | changing dir to /tmp |
---|
| 62 | rename joel to drjoel |
---|
| 63 | rename drjoel to joel |
---|
| 64 | creating directory /imfs |
---|
| 65 | creating directory /imfs/hidden_on_mount |
---|
| 66 | mounting filesystem with IMFS_ops at /imfs |
---|
| 67 | creating directory /imfs/test (on newly mounted filesystem) |
---|
| 68 | attempt to rename directory joel to /imfs/test/joel - should fail with EXDEV |
---|
| 69 | changing dir to / |
---|
| 70 | attempt to rename across filesystem, with old path having a parent node |
---|
| 71 | attempt to rename tmp/joel to /imfs/test/joel |
---|
| 72 | End of _rename_r tests |
---|
[c2f9b97] | 73 | (10)the first write!!! |
---|
| 74 | |
---|
[514a3fe] | 75 | stat( /tmp/joel ) returned |
---|
[3f42281e] | 76 | ....st_dev (0xfffe:0x0) |
---|
| 77 | ....st_ino 13 may vary by small amount |
---|
[9060699] | 78 | ....mode = 00100700 |
---|
| 79 | ....nlink = 1 |
---|
| 80 | ....uid = 0 |
---|
| 81 | ....gid = 0 |
---|
| 82 | ....atime = Sat Dec 31 09:00:00 1988 |
---|
| 83 | ....mtime = Sat Dec 31 09:00:00 1988 |
---|
| 84 | ....ctime = Sat Dec 31 09:00:00 1988 |
---|
[514a3fe] | 85 | ....st_blksize 0 |
---|
| 86 | ....st_blocks 0 |
---|
[912f74ae] | 87 | unlink /tmp/joel |
---|
| 88 | unlink /tmp/joel |
---|
| 89 | mknod /tmp/joel |
---|
[c2f9b97] | 90 | (514)the first write!!! |
---|
| 91 | |
---|
| 92 | (513)the first write!!! |
---|
| 93 | |
---|
| 94 | (24)the first write!!! |
---|
| 95 | |
---|
| 96 | (2)the first write!!! |
---|
| 97 | |
---|
| 98 | (1)the first write!!! |
---|
| 99 | |
---|
| 100 | (0)the first write!!! |
---|
| 101 | |
---|
| 102 | (0)rst write!!! |
---|
| 103 | |
---|
| 104 | (513)the first write!!! |
---|
| 105 | |
---|
[514a3fe] | 106 | Skipping maximum file size test since max_size is 4329344 bytes |
---|
| 107 | That is likely to be bigger than the available RAM on many targets. |
---|
| 108 | stat( /tmp/joel ) returned |
---|
[3f42281e] | 109 | ....st_dev (0xfffe:0x0) |
---|
| 110 | ....st_ino 14 may vary by small amount |
---|
[9060699] | 111 | ....mode = 00100700 |
---|
| 112 | ....nlink = 1 |
---|
| 113 | ....uid = 0 |
---|
| 114 | ....gid = 0 |
---|
| 115 | ....atime = Sat Dec 31 09:00:00 1988 |
---|
| 116 | ....mtime = Sat Dec 31 09:00:00 1988 |
---|
| 117 | ....ctime = Sat Dec 31 09:00:00 1988 |
---|
[514a3fe] | 118 | ....st_blksize 0 |
---|
| 119 | ....st_blocks 0 |
---|
[c2f9b97] | 120 | stat of /tmp/j |
---|
| 121 | stat(/tmp/j) returned -1 (errno=2) |
---|
[3f42281e] | 122 | ....st_dev (0xfffe:0x0) |
---|
[78edd44] | 123 | ....st_ino 3 may vary by small amount |
---|
[514a3fe] | 124 | ....mode = 00020755 |
---|
[9060699] | 125 | ....nlink = 1 |
---|
| 126 | ....uid = 0 |
---|
| 127 | ....gid = 0 |
---|
[1fbd283c] | 128 | ....atime = Fri Jan 1 00:00:00 1988 |
---|
| 129 | ....mtime = Fri Jan 1 00:00:00 1988 |
---|
| 130 | ....ctime = Fri Jan 1 00:00:00 1988 |
---|
[514a3fe] | 131 | ....st_blksize 0 |
---|
| 132 | ....st_blocks 0 |
---|
[c2f9b97] | 133 | fopen of /tmp/j |
---|
| 134 | fprintf to /tmp/j |
---|
| 135 | (1) 26 characters written to the file |
---|
| 136 | (2) 26 characters written to the file |
---|
| 137 | (3) 26 characters written to the file |
---|
| 138 | (4) 26 characters written to the file |
---|
| 139 | (5) 26 characters written to the file |
---|
[3f42281e] | 140 | ....st_dev (0xfffe:0x0) |
---|
| 141 | ....st_ino 15 may vary by small amount |
---|
[514a3fe] | 142 | ....mode = 00100644 |
---|
[9060699] | 143 | ....nlink = 1 |
---|
| 144 | ....uid = 0 |
---|
| 145 | ....gid = 0 |
---|
| 146 | ....atime = Sat Dec 31 09:00:00 1988 |
---|
| 147 | ....mtime = Sat Dec 31 09:00:00 1988 |
---|
| 148 | ....ctime = Sat Dec 31 09:00:00 1988 |
---|
[514a3fe] | 149 | ....st_blksize 0 |
---|
| 150 | ....st_blocks 0 |
---|
[c2f9b97] | 151 | This is call 1 to fprintf |
---|
| 152 | This is call 2 to fprintf |
---|
| 153 | This is call 3 to fprintf |
---|
| 154 | This is call 4 to fprintf |
---|
| 155 | This is call 5 to fprintf |
---|
[3f42281e] | 156 | ....st_dev (0xfffe:0x0) |
---|
| 157 | ....st_ino 15 may vary by small amount |
---|
[514a3fe] | 158 | ....mode = 00100644 |
---|
[9060699] | 159 | ....nlink = 1 |
---|
| 160 | ....uid = 0 |
---|
| 161 | ....gid = 0 |
---|
| 162 | ....atime = Sat Dec 31 09:00:01 1988 |
---|
| 163 | ....mtime = Sat Dec 31 09:00:00 1988 |
---|
| 164 | ....ctime = Sat Dec 31 09:00:00 1988 |
---|
[514a3fe] | 165 | ....st_blksize 0 |
---|
| 166 | ....st_blocks 0 |
---|
[c2f9b97] | 167 | *************** Dump of Entire IMFS *************** |
---|
| 168 | / |
---|
[9060699] | 169 | ....dev/ |
---|
| 170 | ........console (device 0, 0) |
---|
[3f42281e] | 171 | ........console_b (device 0, 1) |
---|
[9060699] | 172 | ........tty/ |
---|
[3f42281e] | 173 | ............S3 (device 255, 128) |
---|
[9060699] | 174 | ........test_console (device 0, 0) |
---|
| 175 | ....etc/ |
---|
[1fbd283c] | 176 | ........passwd (file 0) |
---|
[9060699] | 177 | ....tmp/ |
---|
| 178 | ........my_dir/ |
---|
[1fbd283c] | 179 | ........tom (file 0) |
---|
| 180 | ........john (file 0) |
---|
[514a3fe] | 181 | ........joel (file 533) |
---|
[1fbd283c] | 182 | ........j (file 130) |
---|
[514a3fe] | 183 | ....imfs/ |
---|
| 184 | ........hidden_on_mount/ |
---|
[c2f9b97] | 185 | *************** End of Dump *************** |
---|
| 186 | truncate /tmp/j to length of 40 |
---|
[3f42281e] | 187 | ....st_dev (0xfffe:0x0) |
---|
| 188 | ....st_ino 15 may vary by small amount |
---|
[514a3fe] | 189 | ....mode = 00100644 |
---|
[9060699] | 190 | ....nlink = 1 |
---|
| 191 | ....uid = 0 |
---|
| 192 | ....gid = 0 |
---|
| 193 | ....atime = Sat Dec 31 09:00:02 1988 |
---|
| 194 | ....mtime = Sat Dec 31 09:00:00 1988 |
---|
| 195 | ....ctime = Sat Dec 31 09:00:00 1988 |
---|
[514a3fe] | 196 | ....st_blksize 0 |
---|
| 197 | ....st_blocks 0 |
---|
[c2f9b97] | 198 | *************** Dump of Entire IMFS *************** |
---|
| 199 | / |
---|
[9060699] | 200 | ....dev/ |
---|
| 201 | ........console (device 0, 0) |
---|
[3f42281e] | 202 | ........console_b (device 0, 1) |
---|
[9060699] | 203 | ........tty/ |
---|
[3f42281e] | 204 | ............S3 (device 255, 128) |
---|
[9060699] | 205 | ........test_console (device 0, 0) |
---|
| 206 | ....etc/ |
---|
[1fbd283c] | 207 | ........passwd (file 0) |
---|
[9060699] | 208 | ....tmp/ |
---|
| 209 | ........my_dir/ |
---|
[1fbd283c] | 210 | ........tom (file 0) |
---|
| 211 | ........john (file 0) |
---|
| 212 | ........j (file 40) |
---|
[514a3fe] | 213 | ....imfs/ |
---|
| 214 | ........hidden_on_mount/ |
---|
[c2f9b97] | 215 | *************** End of Dump *************** |
---|
| 216 | truncate /tmp/j to length of 0 |
---|
| 217 | truncate /tmp to length of 0 should fail with EISDIR |
---|
| 218 | |
---|
| 219 | 21: Is a directory |
---|
| 220 | *************** Dump of Entire IMFS *************** |
---|
| 221 | / |
---|
[9060699] | 222 | ....dev/ |
---|
| 223 | ........console (device 0, 0) |
---|
[3f42281e] | 224 | ........console_b (device 0, 1) |
---|
[9060699] | 225 | ........tty/ |
---|
[3f42281e] | 226 | ............S3 (device 255, 128) |
---|
[9060699] | 227 | ........test_console (device 0, 0) |
---|
| 228 | ....etc/ |
---|
[1fbd283c] | 229 | ........passwd (file 0) |
---|
[9060699] | 230 | ....tmp/ |
---|
| 231 | ........my_dir/ |
---|
[1fbd283c] | 232 | ........tom (file 0) |
---|
| 233 | ........john (file 0) |
---|
| 234 | ........j (file 0) |
---|
[514a3fe] | 235 | ....imfs/ |
---|
| 236 | ........hidden_on_mount/ |
---|
[c2f9b97] | 237 | *************** End of Dump *************** |
---|
[b2a1ea3] | 238 | Writing First File |
---|
| 239 | Writing Second File |
---|
| 240 | (0)this is a test line |
---|
| 241 | this is a test line |
---|
| 242 | |
---|
| 243 | (0)this is a test line |
---|
| 244 | this is a test line |
---|
[912f74ae] | 245 | |
---|
[514a3fe] | 246 | *** END OF FILE TEST 1 *** |
---|