Lines Matching defs:mask

12  * Check that fanotify properly merges ignore mask of a mount mark
13 * with a mask of an inode mark on the same group. Unlike the
15 * test mask, because it hides the bug.
21 * 9bdda4e9cf2d fsnotify: fix ignore mask logic in fsnotify()
25 * 2f02fd3fa13e fanotify: fix ignore mask logic for events on child...
487 unsigned int mflags, mask, ignored_mask;
496 if (sscanf(line, "fanotify ino:%*x sdev:%*x mflags: %x mask:%x ignored_mask:%x",
497 &mflags, &mask, &ignored_mask) == 3) {
525 unsigned int mark_ignored, mask;
567 mask = FAN_OPEN | tc->ignored_flags;
572 mask, AT_FDCWD, path);
576 * FAN_MARK_IGNORED_MASK does not. When using legacy ignore mask,
577 * if ignored mask is on a parent watching children, we need to
578 * also set the event and flag FAN_EVENT_ON_CHILD in mark mask.
579 * This is needed to indicate that parent ignored mask
589 * flag in mark mask does not affect the ignore mask.
592 * set a mark mask to watch FAN_CLOSE_WRITE events on children
596 * set a mark mask to watch FAN_CLOSE events only on parent itself
600 * mark mask (mark_type == FANOTIFY_PARENT), then FAN_CLOSE mask
606 mask = FAN_CLOSE_WRITE | FAN_EVENT_ON_CHILD | FAN_ONDIR;
610 mask = FAN_CLOSE | ignored_onchild;
612 mask = FAN_CLOSE | FAN_ONDIR;
686 if (event->mask != expected_mask) {
687 tst_res(TFAIL, "group %d (%x) got event: mask %llx (expected %llx) "
689 (unsigned long long) event->mask,
694 tst_res(TFAIL, "group %d (%x) got event: mask %llx pid=%u "
696 (unsigned long long)event->mask, (unsigned int)event->pid,
792 tst_res(TCONF, "ignored mask in combination with flag FAN_EVENT_ON_CHILD"
814 /* First verify all groups without matching ignore mask got the event */
839 tst_res(TPASS, "group %d (%x) got %d events: mask %llx pid=%u",
848 /* Then verify all groups with matching ignore mask did got the event */
862 "%s ignore mask got unexpectedly many events (%d > %d)",