Posted Sep 13, 2007 10:58 UTC (Thu) by jengelh (subscriber, #33263)
Parent article: LinuxConf.eu wrapup
>Every file has a backpointer to its containing directory - and, yes, multiply-linked files have backpointers to all of the directories in which they are found.
Posted Sep 13, 2007 21:11 UTC (Thu) by intgr (subscriber, #39733)
[Link]
How is it going to shine any more than it does now? inotify works at the VFS layer, so it works the same way regardless of the underlying file system.
LinuxConf.eu wrapup
Posted Sep 13, 2007 21:34 UTC (Thu) by jengelh (subscriber, #33263)
[Link]
Yes, of course you are right, inotify is at the VFS. But the VFS is deep and shallow :-)
Consider the following little pseudo function. (I am not sure it is lock-wise correct, but that is not the issue here.)
This is specific to foofs that it can actually trigger fsnotify_modify events on all dentries that reference the same inode, because only foofs has the 1:N mapping from inode:dentries.
The regular case outside foofs only triggers an fsnotify_modify on the dentry you actually opened (see fs/read_write.c in vfs_write()).