fuse icon indicating copy to clipboard operation
fuse copied to clipboard

Add notification messages framework

Open inevity opened this issue 7 years ago • 7 comments

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

inevity avatar Nov 03 '17 06:11 inevity

Have added documentation.

inevity avatar Nov 05 '17 11:11 inevity

Hello :D Any progress on this PR?

fishpadak avatar Nov 01 '18 08:11 fishpadak

Hello :D Any progress on this PR?

Dont know why jacobsa not to merge or give some advice.

inevity avatar Jan 13 '19 11:01 inevity

Would you mind rebasing this on the current master branch please? We fixed the travis config in the meantime.

stapelberg avatar Sep 18 '19 14:09 stapelberg

Just have rebased on master branch.

inevity avatar Sep 20 '19 04:09 inevity

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.

inevity avatar Sep 27 '19 09:09 inevity

Wait...

inevity avatar Sep 28 '19 02:09 inevity