Hi, not exactly the same topic, I'm looking how to make inotify possible for filesystems like FUSE, cifs and nfs. As mentioned here earlier, inotify is an internal kernel subsystem only, and it's not wise to make userspace filesystems handle inotify the same way as the kernel does. But still (I think) that make the "external" filesystems handle notify is a good thing. I think the way to go is: a. create a new inotify netlink module (name VFS, subgroup notify), which sends a message to userspace when a inotify watch is set (with path (or inode) and mask) b. filesystem (FUSE based, or nfs or cifs) listens to this c. when inotify add watch message is received, the fs takes the right action. In the case of cifs, this is probably something like: http://msdn.microsoft.com/en-us/library/cc246553(v=PROT.13).aspx with the mask translated to something that makes sense to the remote server. in case of a simple overlay FUSE filesystem (backend is on the same host, is an existing fs), the fs sets a inotify watch on this fs. In the case of NFS I do not know, I do not have enough knowledge about it. d. when the fs receives something on the backend specific "notify", it translates it to a linux VFS operation, and notifies the kernel. FUSE has recently added some calls which for example notify the kernel when a directory is removed. http://msdn.microsoft.com/en-us/library/cc246553(v=PROT.13).aspx e. when on the netlink socket the notify remove action is received, the fs removes the related things it has setup in step c. Any comments please. Stef -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html