John McCutchan 8140a5005b [PATCH] inotify: add two inotify_add_watch flags
The below patch lets userspace have more control over the inodes that
inotify will watch.  It introduces two new flags.

        IN_ONLYDIR -- only watch the inode if it is a directory.
        This is needed to avoid the race that can occur when we want to be
        sure that we are watching a directory.

        IN_DONT_FOLLOW -- don't follow a symlink.  In combination
        with IN_ONLYDIR we can make sure that we don't watch the target of
        symlinks.

The issues the flags fix came up when writing the gnome-vfs inotify
backend.  Default behaviour is unchanged.

Signed-off-by: John McCutchan <ttb@tentacle.dhs.org>
Acked-by: Robert Love <rml@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-12 08:57:43 -08:00
..
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:54:53 +01:00
2005-10-04 13:22:01 -07:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:47:45 +01:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-08 16:48:36 +01:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-11-09 07:55:59 -08:00
2005-11-07 07:54:06 -08:00
2005-10-30 17:37:27 -08:00
2005-11-07 07:54:06 -08:00
2005-11-07 07:54:06 -08:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:39 -07:00
2005-09-09 13:57:55 -07:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:10 -08:00
2005-11-07 07:54:06 -08:00
2005-10-08 15:00:57 -07:00
2005-11-09 07:55:59 -08:00
2005-09-10 10:06:22 -07:00
2005-11-07 18:18:11 -08:00
2005-11-07 18:18:11 -08:00
2005-11-07 07:53:39 -08:00
2005-09-09 13:57:55 -07:00