A fake filesystem based on FUSE. This "big homework" (大作业) is a part of operating system course in School of Software, South China University of Technology.
- Install DaveGamble/cJSON.
- Install libfuse. You may do this by using your package manager.
- Clone this project.
- Make a
build
directory, and runcmake ..
in it, then,make
.
- Make 2 directories: a mount point and a directory to store actual files.
./ffs_formatter -d <actual_file_path_absolutely>
- After instruction #2, you have a
fakefs.json
file. Make sure that this JSON file is in your working directory when invokingfakefs
executable. ./fakefs <mount point>
- You now successfully mounted this FakeFS.