On Thu 16-07-20 11:42:23, Amir Goldstein wrote: > Similar to events "on child" to watching directory, send event "on child" > with parent/name info if sb/mount/non-dir marks are interested in > parent/name info. > > The FS_EVENT_ON_CHILD flag can be set on sb/mount/non-dir marks to specify > interest in parent/name info for events on non-directory inodes. > > Events on "orphan" children (disconnected dentries) are sent without > parent/name info. > > Events on direcories are send with parent/name info only if the parent > directory is watching. > > Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx> Hum, doesn't this break ignore mask handling in fanotify_group_event_mask()? Because parent's ignore mask will be included even though parent is added into the iter only to carry the parent info... Also I'm constantly getting confused about mark->mask handling in that function WRT __fsnotify_parent() sending FS_EVENT_ON_CHILD event. But in the end I've convinced myself it is correct ;) Honza -- Jan Kara <jack@xxxxxxxx> SUSE Labs, CR