see details in README.txt
- To compile the program, use the following commands:
make clean # Clean up any previous build make # Compile the program
-
The program can be executed using the following command format:
./filesys -s <test_file> -
Example command:
./filesys -s test_disk_full.txt
-
Before running each test file, it's crucial to: a. First clean up resources with: make clean b. Recompile with: make c. Then run the test file
-
This ensures each test starts with a fresh state and prevents any interference from previous test runs.
To run multiple test files:
make clean
make
./filesys -s test_basic.txt
make clean
make
./filesys -s test_file_size.txt
make clean
make
./filesys -s test_dir_full.txt
make clean
make
./filesys -s test_disk_full.txt
The file system implementation supports the following commands:
- mkdir: Create a new directory
- ls: List contents of current directory
- cd: Change current directory
- home: Return to root directory
- rmdir: Remove a directory
- create: Create a new file
- append: Append data to a file
- cat: Display contents of a file
- tail: Display last 10 lines of a file
- rm: Remove a file
- stat: Display file/directory information
All features have been implemented as per the specifications.
No known issues. All features are working as expected.
The implementation is contained in two main files:
- FileSys.h - Header file containing class definitions
- FileSys.cpp - Implementation file containing all the file system functionality