-
Notifications
You must be signed in to change notification settings - Fork 0
/
runtests.log
209 lines (185 loc) · 6.43 KB
/
runtests.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
starting build
**********************************************************************
Test build
build project using make
**********************************************************************
Trying to build project using make
make
make: Nothing to be done for 'all'.
test build PASSED
(build project using make)
starting shutdown
**********************************************************************
Test shutdown
init server and client then call shutdown
**********************************************************************
Starting server on port 8301
/tmp/tmpUW1iwI/p/server 8301 testimage
loading image testimage
fd -1
initial Inode 0 4095 1
init inode 2
initDir Address 4096
initInode Address 8192
initImap number 3
initImap address 12288
init checkPoint.end 16384 4
server:: waiting...
server:: read message [size:4096 contents:( tag:7 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
Initializing Client Connection ...
Connection Success ...client(Shutdown-->):: message [size:0 contents:( tag:7 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
client reading
client reading complete
client(<--Shutdown):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
test shutdown PASSED
(init server and client then call shutdown)
starting creat
**********************************************************************
Test creat
creat a file and check with lookup
**********************************************************************
Starting server on port 8154
/tmp/tmpUW1iwI/p/server 8154 testimage
loading image testimage
fd -1
initial Inode 0 4095 1
init inode 2
initDir Address 4096
initInode Address 8192
initImap number 3
initImap address 12288
init checkPoint.end 16384 4
server:: waiting...
server:: read message [size:4096 contents:( tag:5 type:1 size:0 pinum:0 inum:0 block:0 name:test buffer:)]
server:: Processing Creat()
imapIndex 0 inodeIndex 0
inmapIndex 0 imap number 3
inode: inum 0 addr: 2
inode: inum 1 addr: 0
inode: inum 2 addr: 0
inode: inum 3 addr: 0
inode: inum 4 addr: 0
inode: inum 5 addr: 0
inode: inum 6 addr: 0
inode: inum 7 addr: 0
inode: inum 8 addr: 0
inode: inum 9 addr: 0
inode: inum 10 addr: 0
inode: inum 11 addr: 0
inode: inum 12 addr: 0
inode: inum 13 addr: 0
inode: inum 14 addr: 0
inode: inum 15 addr: 0
inode match: inodeIndex 0 m.pinum 0 o.inodes[inodesIndex] 2
inode n info: type 0 size 4095 n.dp[0] 1
directory entry 0 -..-
directory entry 0 -.-
directory entry -1 --
pInum 0 nInum 1
new file: name test, inum 1
pDir address 4096 n.dp[0] 1
New Inode: type 1 size 4095 dp[0] 4
newInode address 20480 5
pInode address 24576 6
nInode, o.inodes[newInum] 1 5 pInode, o.inodes[inodeIndex] 0 6
imap address: 0 28672 7
checkPoint.end 32768 8
inode: inum 0 addr: 6
inode: inum 1 addr: 5
inode: inum 2 addr: 0
inode: inum 3 addr: 0
inode: inum 4 addr: 0
inode: inum 5 addr: 0
inode: inum 6 addr: 0
inode: inum 7 addr: 0
inode: inum 8 addr: 0
inode: inum 9 addr: 0
inode: inum 10 addr: 0
inode: inum 11 addr: 0
inode: inum 12 addr: 0
inode: inum 13 addr: 0
inode: inum 14 addr: 0
inode: inum 15 addr: 0
imap: 7 28672
inode: inum 0 addr: 6
inode: inum 1 addr: 5
inode: inum 2 addr: 0
inode: inum 3 addr: 0
inode: inum 4 addr: 0
inode: inum 5 addr: 0
inode: inum 6 addr: 0
inode: inum 7 addr: 0
inode: inum 8 addr: 0
inode: inum 9 addr: 0
inode: inum 10 addr: 0
inode: inum 11 addr: 0
inode: inum 12 addr: 0
inode: inum 13 addr: 0
inode: inum 14 addr: 0
inode: inum 15 addr: 0
o.inodes[0] 6 o.inodes[1] 5 checkPoint.im[imapIndex] 7 checkPoint.end 8
server:: send message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
server:: reply
server:: waiting...
server:: read message [size:4096 contents:( tag:1 type:0 size:0 pinum:0 inum:0 block:0 name:test buffer:)]
server:: Processing lookUp()
imapIndex 0 inodeIndex 0
loop
imap: 7 inodeIndex: 0 imap[0]: 6 imap[1] 5
inode 6
inode 5
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
inode 0
im.inodes[inodeIndex] 6 m.pinum 0
inode n info: type: 0 size: 4095 n.dp[0] 1
dir ent: name .. inum 0
dir ent: name . inum 0
dir ent: name test inum 1
Inum of m.name: 1
server:: send message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:1 block:0 name: buffer:)]
server:: reply
server:: waiting...
server:: read message [size:4096 contents:( tag:7 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
Initializing Client Connection ...
Connection Success ...client(Creat-->):: message [size:0 contents:( tag:5 type:1 size:0 pinum:0 inum:0 block:0 name:test buffer:st)]
client(<--Creat):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
client(Lookup-->):: message [size:4096 contents:( tag:1 type:0 size:0 pinum:0 inum:0 block:0 name:test buffer:st)]
client(<--Lookup):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:1 block:0 name: buffer:)]
client(Shutdown-->):: message [size:4096 contents:( tag:7 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
client reading
client reading complete
client(<--Shutdown):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
test creat PASSED
(creat a file and check with lookup)
starting write
**********************************************************************
Test write
write then read one block
**********************************************************************
Starting server on port 5110
/tmp/tmpUW1iwI/p/server 5110 testimage
Initializing Client Connection ...
Connection Success ...client(Creat-->):: message [size:0 contents:( tag:5 type:1 size:0 pinum:0 inum:0 block:0 name:test buffer:st)]
client(<--Creat):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
client(Lookup-->):: message [size:4096 contents:( tag:1 type:0 size:0 pinum:0 inum:0 block:0 name:test buffer:st)]
client(<--Lookup):: message [size:4096 contents:( tag:0 type:0 size:0 pinum:0 inum:1 block:0 name: buffer:)]
client(Write-->):: message [size:4096 contents:( tag:3 type:0 size:0 pinum:0 inum:1 block:0 name: buffer:START BLOCK 1)]
client(<--Write):: message [size:4096 contents:( tag:-1 type:0 size:0 pinum:0 inum:0 block:0 name: buffer:)]
Failure: MFS_Write returned failure inum=1 block=0
test write FAILED
(write then read one block)
MFS_Write returned failure inum=1 block=0
Skipped 23 tests.
To keep testing after failing a test, use flag '-c' or '--continue'