A fast simulator of a file system written from scratch in C.
If you just want to run it you have to download the project, decompress it, and run:
foo@bar~:$ ./FileSystem
If you want to compile it yourself you can just do
foo@bar~:$ make
And then to use it you can now use.
foo@bar~:$ ./FileSystem
Once you run it, a simulation of a terminal will be started, here are the commands you can use,
foo@bar~:$ create <name> <size>MB <blockSize>K
Creates a new File System.
foo@bar~:$ unmount <name>
Save the File System.
NOTE: You must use this command the first time you create a disk, in order to use it
foo@bar~:$ mount <name>
Load a File System into the program in order to upload and download files.
foo@bar~:$ upload <fileName>
Upload a File into the File System.
foo@bar~:$ download <fileName>
Download a File from the File System
NOTE: The name of the file will be the same in the File System and in your PC. You CANNOT change the name of the file.
foo@bar~:$ ls
List of all the Files in the File System
foo@bar~:$ info
Information of the File System
foo@bar~:$ details <fileName>
Information of a File in the File System.
foo@bar~:$ exit
Exit the File System.
You must unmount a File System once you uploaded the files you want in order to save it.
Be careful when downloading a file, the name will be the same as the one you upload so it may overwrite it if it's in the same directory.
This is the version 1.0.
- Benjamin Santana - blog
This project is licensed under the GNU General Public License
The hash function used was based on this one.