New snapshots design doc
🕑 Added 2021-03-09 21:42:31 +0000 UTCSnapshots are really coming together - the whole thing is starting to look shockingly elegant and simple (you wouldn't be able to guess from the design doc how many years it took to get to that point...)
Comments welcome:
https://bcachefs.org/Snapshots/
Comments
Demi Obenour
Will recursive snapshots be possible? That is one nice feature of ZFS!
Kent Overstreet
You won't be able to create any more snapshots. So you'll be able to create one snapshot a second 34 years.
I'll have a look, but it will be difficult to be more elegant than the Rodeh b-trees used in Btrfs :-) https://dominoweb.draco.res.ibm.com/reports/h-0248.pdf
brunoais
It's unsigned, so it's ~4B. I'm also curious about that.
Ayla Ounce
what happens when a subvolume can no longer allocate new snapshot ids because it's gone through all ~2 billion? (e.g. because a bug in automation generates many more snapshots than anticipated)