On Tuesday 17 August 2010 17:08:26 Eric Paris wrote:
Here is one more bug: when watching a directory with inotify, doing an ls
gives me:
Watching d
d was opened
d not opened for writing was closed
Watching the same directory with fanotify results in:
.../d: pid=... open_perm
.../d: pid=... open
.../d: pid=... access_perm
.../d: pid=... access_perm
.../d: pid=... close
Five events seem a bit excessive; I can't explain why so many are generated.
The real issue is when watching the same directory both with inotify and
fanotify, though: the fanotify result stays the same, but
Watching d
d has not changed
d was opened
d has not changed
d has not changed
d not opened for writing was closed
In other words, watching a directory with fanotify causes extra inotify events
with mask == 0.
Andreas
--