• Eric Paris's avatar
    fanotify: ignore events on directories unless specifically requested · 8fcd6528
    Eric Paris authored
    fanotify has a very limited number of events it sends on directories.  The
    usefulness of these events is yet to be seen and still we send them.  This
    is particularly painful for mount marks where one might receive many of
    these useless events.  As such this patch will drop events on IS_DIR()
    inodes unless they were explictly requested with FAN_ON_DIR.
    
    This means that a mark on a directory without FAN_EVENT_ON_CHILD or
    FAN_ON_DIR is meaningless and will result in no events ever (although it
    will still be allowed since detecting it is hard)
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    8fcd6528
fanotify.c 5.96 KB