←back to thread

The File Filesystem (2021)

(mgree.github.io)
346 points wegwerff | 2 comments | | HN request time: 0.73s | source
Show context
paulgb ◴[] No.40216398[source]
This is really neat, but when I saw the headline I got excited that it was something I have been looking for / considering writing, and I figure the comments here would be a good place to ask if something like this exists:

Is there a FUSE filesystem that runs in-memory (like tmpfs) while mounted, and then when dismounted it serializes to a single file on disk? The closest I can find are FUSE drivers that mount archive files, but then you don't get things like symlinks.

replies(5): >>40216686 #>>40216763 #>>40216799 #>>40216812 #>>40220124 #
khc ◴[] No.40216686[source]
does it have to be fuse? cant you mount a disk image with loopback
replies(2): >>40216749 #>>40216775 #
1. metadat ◴[] No.40216749[source]
But will the disk image be fully stored in memory? No.. not with loopback. Either that, or it won't be mutable in memory with commit on unmount.
replies(1): >>40218001 #
2. generalizations ◴[] No.40218001[source]
Put the disk image inside a ramdisk and it's in memory. Write a script for saving to physical disk when dismounting, and you're done.