added docs for turn-in
parent
516a42c8f9
commit
95b4cc8bbf
|
@ -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.
|
|
@ -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:
|
||||
|
|
@ -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
|
|
Binary file not shown.
Loading…
Reference in New Issue