Skip to content

fanotify directory modify event

Amir Goldstein linux-fsdevel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest14 patches 14 repliesIn review
  2. v216 patches 45 repliesSuperseded
  3. v16 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14fsnotify: tidy up FS_ and FAN_ constantsinclude/linux/fsnotify_backend.h include/uapi/linux/fanotify.h+7 -80 replies
2/14fsnotify: factor helpers fsnotify_dentry() and fsnotify_file()include/linux/fsnotify.h+37 -620 replies
3/14fsnotify: funnel all dirent events through fsnotify_name()include/linux/fsnotify.h+18 -110 replies
4/14fsnotify: use helpers to access data by data_typefs/notify/fanotify/fanotify.c fs/notify/fsnotify.c fs/notify/inotify/inotify_fsnotify.c +3 more+48 -460 replies
5/14fsnotify: simplify arguments passing to fsnotify_parent()fs/notify/fsnotify.c include/linux/fsnotify.h include/linux/fsnotify_backend.h+14 -290 replies
6/14fsnotify: pass dentry instead of inode for events possible on childinclude/linux/fsnotify.h include/linux/fsnotify_backend.h+19 -22 replies
7/14fsnotify: replace inode pointer with an object idfs/notify/fanotify/fanotify.c fs/notify/inotify/inotify_fsnotify.c fs/notify/inotify/inotify_user.c +1 more+8 -90 replies
8/14fanotify: merge duplicate events on parent and childfs/notify/fanotify/fanotify.c+6 -10 replies
9/14fanotify: fix merging marks masks with FAN_ONDIRfs/notify/fanotify/fanotify.c+7 -40 replies
10/14fanotify: divorce fanotify_path_event and fanotify_fid_eventfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h fs/notify/fanotify/fanotify_user.c+265 -1515 replies
11/14fanotify: send FAN_DIR_MODIFY event flavor with dir inode and namefs/notify/fanotify/fanotify.c fs/notify/fsnotify.c include/linux/fsnotify.h +2 more+15 -50 replies
12/14fanotify: prepare to report both parent and child fid'sfs/notify/fanotify/fanotify_user.c+15 -80 replies
13/14fanotify: record name info for FAN_DIR_MODIFY eventfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h fs/notify/fanotify/fanotify_user.c+96 -100 replies
14/14fanotify: report name info for FAN_DIR_MODIFY eventfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify_user.c include/linux/fanotify.h +1 more+90 -254 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/14] fanotify directory modify event

Jan,

This v3 posting is a trimmed down version of v2 name info patches [1]. It includes the prep/fix patches and the patches to add support for the new FAN_DIR_MODIFY event, but leaves out the FAN_REPORT_NAME patches. I will re-post those as a later time.

The v3 patches are available on my github branch fanotify_dir_modify [2]. Same branch names for LTP tests [3], man page draft [6] and a demo [7]. The fanotify_name branches in those github trees include the additional FAN_REPORT_NAME related changes.

Main changes since v2:
- Split fanotify_path_event fanotify_fid_event and fanotify_name_event
- Drop the FAN_REPORT_NAME patches

[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
[2] https://github.com/amir73il/linux/commits/fanotify_dir_modify
[3] https://github.com/amir73il/ltp/commits/fanotify_dir_modify
[4] https://github.com/amir73il/man-pages/commits/fanotify_dir_modify
[5] https://github.com/amir73il/inotify-tools/commits/fanotify_dir_modify

Amir Goldstein (14):
fsnotify: tidy up FS_ and FAN_ constants
fsnotify: factor helpers fsnotify_dentry() and fsnotify_file()
fsnotify: funnel all dirent events through fsnotify_name()
fsnotify: use helpers to access data by data_type
fsnotify: simplify arguments passing to fsnotify_parent()
fsnotify: pass dentry instead of inode for events possible on child
fsnotify: replace inode pointer with an object id
fanotify: merge duplicate events on parent and child
fanotify: fix merging marks masks with FAN_ONDIR
fanotify: divorce fanotify_path_event and fanotify_fid_event
fanotify: send FAN_DIR_MODIFY event flavor with dir inode and name
fanotify: prepare to report both parent and child fid's
fanotify: record name info for FAN_DIR_MODIFY event
fanotify: report name info for FAN_DIR_MODIFY event

 fs/notify/fanotify/fanotify.c        | 304 ++++++++++++++++++++-------
 fs/notify/fanotify/fanotify.h        | 172 +++++++++------
 fs/notify/fanotify/fanotify_user.c   | 171 ++++++++++-----
 fs/notify/fsnotify.c                 |  22 +-
 fs/notify/inotify/inotify_fsnotify.c |  12 +-
 fs/notify/inotify/inotify_user.c     |   2 +-
 include/linux/fanotify.h             |   3 +-
 include/linux/fsnotify.h             | 138 +++++-------
 include/linux/fsnotify_backend.h     |  87 ++++++--
 include/uapi/linux/fanotify.h        |   6 +-
 kernel/audit_fsnotify.c              |  13 +-
 kernel/audit_watch.c                 |  16 +-
 12 files changed, 610 insertions(+), 336 deletions(-)
Signature · 1 line
2.17.1