• Eric Paris's avatar
    fsnotify: clone existing events · b4e4e140
    Eric Paris authored
    fsnotify_clone_event will take an event, clone it, and return the cloned
    event to the caller.  Since events may be in use by multiple fsnotify
    groups simultaneously certain event entries (such as the mask) cannot be
    changed after the event was created.  Since fanotify would like to merge
    events happening on the same file it needs a new clean event to work with
    so it can change any fields it wishes.
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
notification.c 11.4 KB