diff --git a/README_FIRST.txt b/README_FIRST.txt new file mode 100644 index 0000000..0dc6a42 --- /dev/null +++ b/README_FIRST.txt @@ -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. diff --git a/docs/execution_details.txt b/docs/execution_details.txt new file mode 100644 index 0000000..c2e1b24 --- /dev/null +++ b/docs/execution_details.txt @@ -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: + diff --git a/docs/log.csv b/docs/log.csv new file mode 100644 index 0000000..f245760 --- /dev/null +++ b/docs/log.csv @@ -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 diff --git a/docs/output.txt b/docs/output.txt new file mode 100644 index 0000000..59586af Binary files /dev/null and b/docs/output.txt differ