fuse
fuse copied to clipboard
Add notification messages framework
Now we only impl the NotifyInvalInode,NotifyInvalEntry, NotifyDelete.
Notify funcs allow the filesystem to invalidate VFS caches.
The statement that 'In a networked fuse file-system, the local fuse instance may receive changes from a remote system that do not pass through the local kernel vfs. When those changes are made the local fuse instance must notify the local kernel of the change so as to keep the local kernel's cache in sync. This is accomplished via notify delete or notify invalidate. In other words, these notifications only apply if fuse file-system makes changes to the file-system that are not initiated by the local kernel: changes initiated by the local kernel must not involve notify delete or notify invalidate (will deadlock), and are not required.' is quoted from Jhon Muir.
About fuse notify func history ,please ref link http://lkml.iu.edu/hypermail/linux/kernel/0906.0/01120.html
Have added documentation.
Hello :D Any progress on this PR?
Hello :D Any progress on this PR?
Dont know why jacobsa not to merge or give some advice.
Would you mind rebasing this on the current master branch please? We fixed the travis config in the meantime.
Just have rebased on master branch.
Can you give some comments about the context commit? I use context in SetNotifyContext,so this func SetNotifyContext have nothing to modify, only one bug to fix.
Then change NotifyKernel(opstate opState) as this signature.
And the funcs which calling notifykernel in fuseutil/file_system.go Where have some dup code, you can give some detail advice.
Wait...