The fanotify API - corrections
Posted Jul 3, 2009 11:04 UTC (Fri) by
brother_rat (subscriber, #1895)
In reply to:
The fanotify API - corrections by jlokier
Parent article:
The fanotify API
I think you've misunderstood things. Try reading the original announcement and you'll see how simple it is to watch the entire file system. In particular:
fanotify has two basic 'modes' directed and global. fanotify directed
works much like inotify in that userspace marks inodes it is interested
in and gets events from those inodes. fanotify global instead indicates
that it wants everything on the system and then individually marks
inodes that it doesn't care about. They both have the same userspace
interface and rely on the same fsnotify in kernel infrastrucute
(although the infrastructure did have to modified to support the global
listener concept)
Also look at the example program at the end of the e-mail.
(
Log in to post comments)