Open rickysarraf opened 4 years ago
currently catfs cannot work offline as it always reach out to the backing store for metadata
I also think this is an important feature for a caching filesystem.
@kahing Is this functionality that catfs could potentially have, or is it against design goals? Would you be willing to review PRs? How hard do you estimate the task to be?
If you just want to retry and sleep in a loop like NFS this is easy to do.
@gaul
Thanks gaul! Do you mean sleeping and blocking reads until the backing store is online again?
rickysarraf's idea seems to be that reading should still succeed without the backing store being present, and directory listings are fulfilled from the local cache. This would require catfs to be comfortable serving stale data, without stat
ing the backing store.
Writing a disconnected filesystem is a lot of work! I recommend starting with a retry and sleep loop.
Offline-Filesystem exists but looks like it has bit-rotted.
Consider this scenario:
Under circumstances where the backing device is lost (network interruption, network change, roaming profile etc), the data should still be served transparently from the cache