Last active
July 29, 2019 16:38
-
-
Save tedpelas/548f53cc187371b91efdb9f5df2072bb to your computer and use it in GitHub Desktop.
nullfs is FUSE filesystem driver which discards all files' data written to it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # apt install make build-essential libfuse-dev fuse | |
| $ git clone https://github.com/xrgtn/nullfs | |
| $ cd nullfs/ | |
| $ make clean | |
| rm -f nul1fs nullfs nulnfs *.o | |
| $ make | |
| cc nul1fs.c "-lfuse" -o nul1fs | |
| g++ nullfs.c++ "-lfuse" -o nullfs | |
| cc nulnfs.c "-lfuse" -o nulnfs | |
| $ cc nul1fs.c -o nul1fs -lfuse | |
| $ ./nul1fs mnt | |
| $ ls -l | |
| -rw-r--r-- 1 xxx xxx 5935 Jul 29 18:00 linux_list.h | |
| -rw-r--r-- 1 xxx xxx 29312 Jul 29 18:00 list.h | |
| -rw-r--r-- 1 xxx xxx 143 Jul 29 18:00 Makefile | |
| drwxrwxrwx 2 root root 0 Jul 29 18:06 mnt | |
| $ mount | grep nullfs | |
| /home/xxx/nullfs/nul1fs on /home/xxx/nullfs/mnt type fuse.nul1fs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment