LogFS is a simple userspace filesystem that logs everything to a file. Made using C and LibFUSE high level API.
- List the contents of a directory (
ls) - Change the working directory (
cd) - Creating files and directories (
touchandmkdir) - Editing files (
nanoorvim) - Deleting files and directories (
rmandrmdir) - Logs everything to a file, and give the user the ability to:
- View the logs.
- Reset the logs.
- Mount the filesystem with logging disabled.
- Support for links.
- Support for copying and moving(renaming).
- Changing permissions.
Install libfuse3
- You can install it from here
Clone this repo
git clone https://github.com/Satharus/LogFS
Run
./compile.sh
Make a new directory to test LogFS
mkdir NewRun LogFS
./LogFS NewChange the working directory to the mount directory
cd NewTest the filesystem like you'd use your usual filesystem from the CLI.
Check the logs
../LogFS --show-logsClear the logs
../LogFS --clear-logsLeave the mounting point
cd ..unmount the filesystem
fusermount3 -u New/
