Continuous Snapshotting Filesystem

18 points by natfu


hawski

I love the idea, but never got to actually use it. It is meant to be bulletproof, but from what I read there are a few quite rare conditions that can happen and break it. The problem is that there is no fsck. It is mentioned as a problem even in the man page for nilfs-tune.

But the idea of a relatively simple file system that is mature and in kernel already implementing a continuous snapshotting is very alluring.

I remember reading years ago NILFS2 was in the middle order of magnitude in case of bugs from the presentation about filesystems fuzzing from 2016 [0].

Time to first bug:

Hours:

Minutes:

Seconds:

I need to check if someone redid the experiment later. Though I would hope that most filesystems are more robust 10 years later.

[0] https://events.static.linuxfound.org/sites/events/files/slides/AFL%20filesystem%20fuzzing%2C%20Vault%202016_0.pdf

mqudsi

The last time I tried using nilfs2 (precompiled into the kernel by the distribution, iirc) I would run into (different) panics left and right.I loved the idea, but the execution left a lot to be desired.

lonjil

I used to have Zrepl make a snapshot of every ZFS dataset on my computer every single minute. Had to stop tho cause Zrepl always snapshots each dataset one at a time, instead of doing one big snaphost per pool, so sometimes it would take more than a minute to go thru all my datasets...