anowell / algorithmia-fuse

Experimental: FUSE-based Algorithmia FileSystem
1 stars 0 forks source link

Directory listing doesn't stay in since with external changes #4

Open anowell opened 8 years ago

anowell commented 8 years ago

Inode metadata is permanently cached, so if you change a directory's contents outside of AlgoFS, you have to unmount and remount AlgoFS before those changes appear.

I'd like to avoid losing the lookup perf, so my inclination is to take a double-cache approach with 2 TTLs:

Since this is a perf vs correctness tradeoff, these TTLs should probably be configurable options.