bbengfort / fluidfs

A highly consistent distributed filesystem built with FUSE
http://www.fluidfs.com
MIT License
1 stars 0 forks source link

Cache Invalidation #36

Open bbengfort opened 7 years ago

bbengfort commented 7 years ago

Make sure that FUSE invalidates the kernel cache so that all system calls go through our application.

Check the clockfs example in FUSE.

bbengfort commented 7 years ago

Added the following methods to Node: invalidate(), InvalidateData(), and InvalidateAttr() based off the methods in [fuse/fs/serve.go#L1431](https://github.com/bazil/fuse/blob/master/fs/serve.go#L1431.

Am calling InvalidateData() in Store() for both Dir and File nodes. However this is not working and am getting a "error flushing filesystem at /~bbengfort: could not invalidate node 1: invalid argument"

I suspect this is about the NodeID attribute ... which I don't know how to deal with quite yet.