linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] New fanotify API for ignoring events
@ 2022-06-20 13:45 Amir Goldstein
  2022-06-20 13:45 ` [PATCH 1/2] fanotify: prepare for setting event flags in ignore mask Amir Goldstein
  2022-06-20 13:45 ` [PATCH 2/2] fanotify: introduce FAN_MARK_IGNORE Amir Goldstein
  0 siblings, 2 replies; 13+ messages in thread
From: Amir Goldstein @ 2022-06-20 13:45 UTC (permalink / raw)
  To: Jan Kara; +Cc: Matthew Bobrowski, linux-fsdevel, linux-api

Hi Jan,

As we discussed [1], here is the implementation of the new
FAN_MARK_IGNORE API, to try and sort the historic mess of
FAN_MARK_IGNORED_MASK.

It is worth mentioning that the new API enables the functionality of
watching events ONLY on directories (by ignoring events on non-dir).

LTP tests [2] and man page draft [3] are ready as well.

I am going on vacation in two weeks time, so wanted to
send these out early.

Thanks,
Amir.

[1] https://lore.kernel.org/linux-fsdevel/20220428123824.ssq72ovqg2nao5f4@quack3.lan/
[2] https://github.com/amir73il/ltp/commits/fan_mark_ignore
[3] https://github.com/amir73il/man-pages/commits/fan_mark_ignore

Amir Goldstein (2):
  fanotify: prepare for setting event flags in ignore mask
  fanotify: introduce FAN_MARK_IGNORE

 fs/notify/fanotify/fanotify.c      | 17 +++++----
 fs/notify/fanotify/fanotify.h      |  2 ++
 fs/notify/fanotify/fanotify_user.c | 55 +++++++++++++++++++++---------
 fs/notify/fdinfo.c                 |  6 ++--
 fs/notify/fsnotify.c               | 21 +++++++-----
 include/linux/fanotify.h           |  5 ++-
 include/linux/fsnotify_backend.h   | 46 +++++++++++++++++++++----
 include/uapi/linux/fanotify.h      |  2 ++
 8 files changed, 113 insertions(+), 41 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-06-24 12:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 13:45 [PATCH 0/2] New fanotify API for ignoring events Amir Goldstein
2022-06-20 13:45 ` [PATCH 1/2] fanotify: prepare for setting event flags in ignore mask Amir Goldstein
2022-06-22 15:52   ` Jan Kara
2022-06-22 18:31     ` Amir Goldstein
2022-06-24 11:32     ` Amir Goldstein
2022-06-24 12:35       ` Jan Kara
2022-06-22 16:00   ` Jan Kara
2022-06-22 18:28     ` Amir Goldstein
2022-06-23  9:49       ` Jan Kara
2022-06-23 13:59         ` Amir Goldstein
2022-06-20 13:45 ` [PATCH 2/2] fanotify: introduce FAN_MARK_IGNORE Amir Goldstein
2022-06-23 10:14   ` Jan Kara
2022-06-23 12:17     ` Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).