added docs for turn-in

master
A 2020-05-03 17:43:32 -07:00
parent 516a42c8f9
commit 95b4cc8bbf
4 changed files with 384 additions and 0 deletions

42
README_FIRST.txt Normal file
View File

@ -0,0 +1,42 @@
Programming Assignment #4 -- Filesystem
Team members -------------------------------------------------------------------
Chris Nutter
Austin Kim
Files to be graded -------------------------------------------------------------
descriptor.c
filesystem.h
filesystem.c
File contents ------------------------------------------------------------------
disk.h Contains declarations of the filesystem functions as given
by the assignment (Header.c).
disk.c Contains definitions of the filesystem functions as given by
the assignment (Source.c).
descriptor.c Contains the file descriptor structure.
filesystem.h Contains declarations of filesystem functins, filesystem
structures, and other helper functions.
filesystem.c Contains the definitions of functions mentioned above.
main.c Contains the driver code, e.g. tests.
disks/ Folder containing the virtual disks.
Documentation ------------------------------------------------------------------
README_FIRST.txt This file.
docs/execution_details.txt A brief how-to on building/running the program.
docs/output.txt Raw dump of what a typical run looks like.

View File

@ -0,0 +1,41 @@
Building -----------------------------------------------------------------------
If the executable are missing for C version of the assignment, run
$ gcc *.h *.c -o fs
Execution ----------------------------------------------------------------------
Run the program:
$ ./fs
The program will ask if you want to load an existing disk or make a new one:
Create a new disk? (y/n):
If this is the first time running the program, enter 'y' to create and
name the new disk:
Create a new disk? (y/n): y
Name the new disk: mydisk
After that, the program runs automatically and exits.
There's no special arguments needed. The main function runs a series of
tests using the functions defined.
If you want to load an existing disk, run the program again and choose 'n'
when asked to create a new disk:
Create a new disk? (y/n): n
List of available disks:
test1
test123
asdf
Enter the name of disk to load:

301
docs/log.csv Normal file
View File

@ -0,0 +1,301 @@
thread_0,thread_1,thread_2,thread_3,thread_4,thread_5,thread_6,thread_7,thread_8,thread_9
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
,push,,,,,,,,
,POP,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
push,,,,,,,,,
POP,,,,,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,push,,,,,
,,,,POP,,,,,
,,,,,,,,push,
,,,,push,,,,,
,,,,,,,,POP,
,,,,POP,,,,,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,,,,push,
,,,,,,,,POP,
,,,,,push,,,,
,,,,,POP,,,,
,,,push,,,,,,
,,,,,push,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,,push,,,,,,
,,,POP,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,push,,,,,,,
,,POP,,,,,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,,push,,,
,,,,,,POP,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,push,,,,
,,,,,POP,,,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,push,,
,,,,,,,POP,,
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
,,,,,,,,,push
,,,,,,,,,POP
1 thread_0 thread_1 thread_2 thread_3 thread_4 thread_5 thread_6 thread_7 thread_8 thread_9
2 push
3 POP
4 push
5 POP
6 push
7 POP
8 push
9 POP
10 push
11 POP
12 push
13 POP
14 push
15 POP
16 push
17 POP
18 push
19 POP
20 push
21 POP
22 push
23 POP
24 push
25 POP
26 push
27 POP
28 push
29 POP
30 push
31 POP
32 push
33 POP
34 push
35 POP
36 push
37 POP
38 push
39 POP
40 push
41 POP
42 push
43 POP
44 push
45 POP
46 push
47 POP
48 push
49 POP
50 push
51 POP
52 push
53 POP
54 push
55 POP
56 push
57 POP
58 push
59 POP
60 push
61 POP
62 push
63 POP
64 push
65 POP
66 push
67 POP
68 push
69 POP
70 push
71 POP
72 push
73 POP
74 push
75 POP
76 push
77 POP
78 push
79 POP
80 push
81 POP
82 push
83 POP
84 push
85 POP
86 push
87 POP
88 push
89 POP
90 push
91 push
92 POP
93 POP
94 push
95 POP
96 push
97 POP
98 push
99 POP
100 push
101 POP
102 push
103 POP
104 push
105 POP
106 push
107 POP
108 push
109 POP
110 push
111 POP
112 push
113 POP
114 push
115 POP
116 push
117 POP
118 push
119 POP
120 push
121 POP
122 push
123 POP
124 push
125 push
126 POP
127 push
128 POP
129 push
130 POP
131 push
132 POP
133 push
134 POP
135 push
136 POP
137 push
138 POP
139 push
140 POP
141 push
142 POP
143 push
144 POP
145 push
146 POP
147 push
148 POP
149 push
150 POP
151 push
152 POP
153 push
154 POP
155 push
156 POP
157 push
158 POP
159 push
160 POP
161 push
162 POP
163 push
164 POP
165 push
166 POP
167 push
168 POP
169 push
170 POP
171 push
172 POP
173 push
174 POP
175 push
176 POP
177 push
178 POP
179 push
180 POP
181 push
182 POP
183 push
184 POP
185 push
186 POP
187 push
188 POP
189 push
190 POP
191 push
192 POP
193 push
194 POP
195 push
196 POP
197 push
198 POP
199 push
200 POP
201 push
202 POP
203 push
204 POP
205 push
206 POP
207 push
208 POP
209 push
210 POP
211 push
212 POP
213 push
214 POP
215 POP
216 push
217 POP
218 push
219 POP
220 push
221 POP
222 push
223 POP
224 push
225 POP
226 push
227 POP
228 push
229 POP
230 push
231 POP
232 push
233 POP
234 push
235 POP
236 push
237 POP
238 push
239 POP
240 push
241 POP
242 push
243 POP
244 push
245 POP
246 push
247 POP
248 push
249 POP
250 push
251 POP
252 push
253 POP
254 push
255 POP
256 push
257 POP
258 push
259 POP
260 push
261 POP
262 push
263 POP
264 push
265 POP
266 push
267 POP
268 push
269 POP
270 push
271 POP
272 push
273 POP
274 push
275 POP
276 push
277 POP
278 push
279 POP
280 push
281 POP
282 push
283 POP
284 push
285 POP
286 push
287 POP
288 push
289 POP
290 push
291 POP
292 push
293 POP
294 push
295 POP
296 push
297 POP
298 push
299 POP
300 push
301 POP

BIN
docs/output.txt Normal file

Binary file not shown.