threefoldtech / 0-db-fs

Apache License 2.0
2 stars 1 forks source link

snapshot: ensure cache is flushed before assume snapshot is ready #5

Open maxux opened 3 years ago

maxux commented 3 years ago

We can use power of 0-db for unlimited and automatic snapshot at any point of time. But rollback to a time where some data are still in cache and are not in the database can lead to wrong rollback consistancy.

File system should have a way (probably an ioctl) to know a snapshot is requested. This would flush caches to ensure database is fully populated.

sasha-astiadi commented 3 years ago

not needed for next releasae qsfs 0.9