←back to thread

The File Filesystem (2021)

(mgree.github.io)
346 points wegwerff | 6 comments | | HN request time: 0.487s | source | bottom
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 #
1. khc ◴[] No.40216686[source]
does it have to be fuse? cant you mount a disk image with loopback
replies(2): >>40216749 #>>40216775 #
2. 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 #
3. andrewflnr ◴[] No.40216775[source]
Wouldn't a disk image have a fixed size? It could be a pain to resize.
replies(1): >>40216806 #
4. ranger_danger ◴[] No.40216806[source]
qcow2 is auto-expanding
replies(1): >>40222914 #
5. 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.
6. andrewflnr ◴[] No.40222914{3}[source]
But not trivially loop-mountable. I guess it's possible, though. https://unix.stackexchange.com/questions/268460/how-to-mount...