[0895bdb] | 1 |
|
---|
| 2 |
|
---|
| 3 | *** FILE TEST 1 ***
|
---|
| 4 | *************** Dump of Entire IMFS ***************
|
---|
| 5 | /
|
---|
| 6 | dev/
|
---|
| 7 | console (device 0, 0)
|
---|
| 8 | *************** End of Dump ***************
|
---|
| 9 | stat of /dev/console
|
---|
| 10 | st_dev (0x0:0x0)
|
---|
| 11 | st_ino 3
|
---|
| 12 | mode = 00020771
|
---|
| 13 | nlink = 1
|
---|
| 14 | uid = 0
|
---|
| 15 | gid = 0
|
---|
| 16 | atime = Fri Jan 01 00:00:00 1988
|
---|
| 17 | mtime = Fri Jan 01 00:00:00 1988
|
---|
| 18 | ctime = Fri Jan 01 00:00:00 1988
|
---|
| 19 |
|
---|
| 20 | mkdir /dev/tty
|
---|
| 21 |
|
---|
| 22 | mkdir /usr
|
---|
| 23 | mkdir /etc
|
---|
| 24 | mkdir /tmp
|
---|
| 25 | mkdir /tmp/..
|
---|
| 26 | mkdir /tmp/
|
---|
| 27 | mkdir /j/j1
|
---|
| 28 | mkdir tmp
|
---|
| 29 |
|
---|
| 30 | rmdir /usr
|
---|
| 31 | mkdir /etc/passwd/j
|
---|
| 32 | open /tmp/joel - should fail with ENOENT
|
---|
| 33 | open /tmp/j
|
---|
| 34 | open returned file descriptor 3
|
---|
| 35 | close /tmp/j
|
---|
| 36 | unlink /tmp/j
|
---|
| 37 | (0)the first write!!!
|
---|
| 38 |
|
---|
| 39 | (10)the first write!!!
|
---|
| 40 |
|
---|
| 41 | stat( /tmp/joel ) returned st_dev (0x1a7f8:0x3e86f0)
|
---|
| 42 | st_ino d
|
---|
| 43 | mode = 00100700
|
---|
| 44 | nlink = 1
|
---|
| 45 | uid = 0
|
---|
| 46 | gid = 0
|
---|
| 47 | atime = Sat Dec 31 09:00:00 1988
|
---|
| 48 | mtime = Sat Dec 31 09:00:00 1988
|
---|
| 49 | ctime = Sat Dec 31 09:00:00 1988
|
---|
| 50 | (514)the first write!!!
|
---|
| 51 |
|
---|
| 52 | (513)the first write!!!
|
---|
| 53 |
|
---|
| 54 | (24)the first write!!!
|
---|
| 55 |
|
---|
| 56 | (2)the first write!!!
|
---|
| 57 |
|
---|
| 58 | (1)the first write!!!
|
---|
| 59 |
|
---|
| 60 | (0)the first write!!!
|
---|
| 61 |
|
---|
| 62 | (0)rst write!!!
|
---|
| 63 |
|
---|
| 64 | (513)the first write!!!
|
---|
| 65 |
|
---|
| 66 | (139743)
|
---|
| 67 | stat( /tmp/joel ) returned st_dev (0x1a7f8:0x3e86f0)
|
---|
| 68 | st_ino e
|
---|
| 69 | mode = 00100700
|
---|
| 70 | nlink = 1
|
---|
| 71 | uid = 0
|
---|
| 72 | gid = 0
|
---|
| 73 | atime = Sat Dec 31 09:00:00 1988
|
---|
| 74 | mtime = Sat Dec 31 09:00:00 1988
|
---|
| 75 | ctime = Sat Dec 31 09:00:00 1988
|
---|
| 76 | stat of /tmp/j
|
---|
| 77 | stat(/tmp/j) returned -1 (errno=2)
|
---|
| 78 | st_dev (0x0:0x0)
|
---|
| 79 | st_ino 3
|
---|
| 80 | mode = 00020771
|
---|
| 81 | nlink = 1
|
---|
| 82 | uid = 0
|
---|
| 83 | gid = 0
|
---|
| 84 | atime = Fri Jan 01 00:00:00 1988
|
---|
| 85 | mtime = Fri Jan 01 00:00:00 1988
|
---|
| 86 | ctime = Fri Jan 01 00:00:00 1988
|
---|
| 87 | fopen of /tmp/j
|
---|
| 88 | fprintf to /tmp/j
|
---|
| 89 | (1) 26 characters written to the file
|
---|
| 90 | (2) 26 characters written to the file
|
---|
| 91 | (3) 26 characters written to the file
|
---|
| 92 | (4) 26 characters written to the file
|
---|
| 93 | (5) 26 characters written to the file
|
---|
| 94 | st_dev (0x0:0x0)
|
---|
| 95 | st_ino f
|
---|
| 96 | mode = 00100660
|
---|
| 97 | nlink = 1
|
---|
| 98 | uid = 0
|
---|
| 99 | gid = 0
|
---|
| 100 | atime = Sat Dec 31 09:00:00 1988
|
---|
| 101 | mtime = Sat Dec 31 09:00:00 1988
|
---|
| 102 | ctime = Sat Dec 31 09:00:00 1988
|
---|
| 103 | This is call 1 to fprintf
|
---|
| 104 | This is call 2 to fprintf
|
---|
| 105 | This is call 3 to fprintf
|
---|
| 106 | This is call 4 to fprintf
|
---|
| 107 | This is call 5 to fprintf
|
---|
| 108 | st_dev (0x0:0x0)
|
---|
| 109 | st_ino f
|
---|
| 110 | mode = 00100660
|
---|
| 111 | nlink = 1
|
---|
| 112 | uid = 0
|
---|
| 113 | gid = 0
|
---|
| 114 | atime = Sat Dec 31 09:00:01 1988
|
---|
| 115 | mtime = Sat Dec 31 09:00:00 1988
|
---|
| 116 | ctime = Sat Dec 31 09:00:00 1988
|
---|
| 117 | *************** Dump of Entire IMFS ***************
|
---|
| 118 | /
|
---|
| 119 | dev/
|
---|
| 120 | console (device 0, 0)
|
---|
| 121 | tty/
|
---|
| 122 | S3 (device 255, 128)
|
---|
| 123 | test_console (device 0, 0)
|
---|
| 124 | etc/
|
---|
| 125 | passwd (file 0 0x0 0x0 0x0)
|
---|
| 126 | tmp/
|
---|
| 127 | joel (file 279487 0x3d5ac0 0x3d5570 0x3d5020)
|
---|
| 128 | j (file 130 0x37f530 0x0 0x0)
|
---|
| 129 | *************** End of Dump ***************
|
---|
| 130 | truncate /tmp/j to length of 40
|
---|
| 131 | st_dev (0x0:0x0)
|
---|
| 132 | st_ino f
|
---|
| 133 | mode = 00100660
|
---|
| 134 | nlink = 1
|
---|
| 135 | uid = 0
|
---|
| 136 | gid = 0
|
---|
| 137 | atime = Sat Dec 31 09:00:02 1988
|
---|
| 138 | mtime = Sat Dec 31 09:00:00 1988
|
---|
| 139 | ctime = Sat Dec 31 09:00:00 1988
|
---|
| 140 | *************** Dump of Entire IMFS ***************
|
---|
| 141 | /
|
---|
| 142 | dev/
|
---|
| 143 | console (device 0, 0)
|
---|
| 144 | tty/
|
---|
| 145 | S3 (device 255, 128)
|
---|
| 146 | test_console (device 0, 0)
|
---|
| 147 | etc/
|
---|
| 148 | passwd (file 0 0x0 0x0 0x0)
|
---|
| 149 | tmp/
|
---|
| 150 | j (file 40 0x37f530 0x0 0x0)
|
---|
| 151 | *************** End of Dump ***************
|
---|
| 152 | truncate /tmp/j to length of 0
|
---|
| 153 | truncate /tmp to length of 0 should fail with EISDIR
|
---|
| 154 |
|
---|
| 155 | 21: Is a directory
|
---|
| 156 | *************** Dump of Entire IMFS ***************
|
---|
| 157 | /
|
---|
| 158 | dev/
|
---|
| 159 | console (device 0, 0)
|
---|
| 160 | tty/
|
---|
| 161 | S3 (device 255, 128)
|
---|
| 162 | test_console (device 0, 0)
|
---|
| 163 | etc/
|
---|
| 164 | passwd (file 0 0x0 0x0 0x0)
|
---|
| 165 | tmp/
|
---|
| 166 | j (file 0 0x37f530 0x0 0x0)
|
---|
| 167 | *************** End of Dump ***************
|
---|
| 168 | *** END OF FILE TEST 1 ***
|
---|