Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FUSE, VFS: Add the fuse_fsnotify_update_mark inode operation
Every time a local watch is placed/modified/removed on/from an inode the same operation has to take place in the FUSE server. Thus add the inode operation "fuse_fsnotify_update_mark", which is specific to FUSE inodes. This operation is called from the "inotify_add_watch" system call in the inotify subsystem. Specifically, the operation is called when a process tries to add, modify or remove a watch from a FUSE inode and the remote fsnotify support is enabled both in the guest kernel and the FUSE server (virtiofsd). Essentially, when the kernel adds/modifies a watch locally, also send a fsnotify request to the FUSE server to do the same. We keep the local watch placement since it is essential for the functionality of the fsnotify notification subsystem. However, the local events generated by the guest kernel will be suppressed if they affect FUSE inodes and the remote fsnotify support is enabled. Signed-off-by: Ioannis Angelakopoulos <iangelak@redhat.com>
- Loading branch information