portworx / lcfs

LCFS Graph driver for Docker
Apache License 2.0
300 stars 27 forks source link

Provide crash consistency #9

Closed jjobi closed 7 years ago

jjobi commented 7 years ago

As of now, if system or lcfs crashes, the whole file system is wiped off (not when lcfs is cleanly unmounted). Implement a scheme such that file system is intact even across abnormal shutdowns. A checkpointing scheme may be preferred over a journaling scheme.

jjobi commented 7 years ago

LCFS now uses a background thread to create checkpoints of the file system. After an abnormal shutdown, it will restart from the last checkpoint present.