Skip to content

Extend fanotify dirent events

Amir Goldstein linux-api linux-fsdevel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest11 patches 2 repliesIn review
  2. v29 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on v5.16-rc3
- Separate mark iterator type from object type enum
- Use dedicated iter type for 2nd dir
- Use iter type report mask to indicate if old and/or new dir are watching FAN_RENAME

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11fsnotify: clarify object type argumentfs/notify/fanotify/fanotify_user.c fs/notify/group.c fs/notify/mark.c +1 more+32 -330 replies
2/11fsnotify: separate mark iterator type from object type enumfs/notify/fanotify/fanotify.c fs/notify/fsnotify.c fs/notify/mark.c +1 more+42 -270 replies
3/11fanotify: introduce group flag FAN_REPORT_TARGET_FIDfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify_user.c include/linux/fanotify.h +1 more+51 -140 replies
4/11fsnotify: generate FS_RENAME event with rich informationfs/notify/dnotify/dnotify.c fs/notify/fsnotify.c include/linux/dnotify.h +2 more+41 -160 replies
5/11fanotify: use macros to get the offset to fanotify_info bufferfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h+31 -120 replies
6/11fanotify: use helpers to parcel fanotify_info bufferfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h+39 -160 replies
7/11fanotify: support secondary dir fh and name in fanotify_infofs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h fs/notify/fanotify/fanotify_user.c+88 -140 replies
8/11fanotify: record old and new parent and name in FAN_RENAME eventfs/notify/fanotify/fanotify.c include/uapi/linux/fanotify.h+40 -40 replies
9/11fanotify: record either old name new name or both for FAN_RENAMEfs/notify/fanotify/fanotify.c+46 -130 replies
10/11fanotify: report old and/or new parent+name in FAN_RENAME eventfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify.h fs/notify/fanotify/fanotify_user.c +1 more+79 -60 replies
11/11fanotify: wire up FAN_RENAME eventfs/notify/fanotify/fanotify.c fs/notify/fanotify/fanotify_user.c include/linux/fanotify.h+11 -20 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/11] Extend fanotify dirent events

Jan,

This is the 3rd version of patches to add FAN_REPORT_TARGET_FID group flag and FAN_RENAME event.

Patches [1] LTP test [2] and man page draft [3] are available on my github.

Thanks,
Amir.

[1] https://github.com/amir73il/linux/commits/fan_rename-v3
[2] https://github.com/amir73il/ltp/commits/fan_rename
[2] https://github.com/amir73il/man-pages/commits/fan_rename

Changes since v2:
- Rebase on v5.16-rc3
- Separate mark iterator type from object type enum
- Use dedicated iter type for 2nd dir
- Use iter type report mask to indicate if old and/or new dir are watching FAN_RENAME

Amir Goldstein (11):
fsnotify: clarify object type argument
fsnotify: separate mark iterator type from object type enum
fanotify: introduce group flag FAN_REPORT_TARGET_FID
fsnotify: generate FS_RENAME event with rich information
fanotify: use macros to get the offset to fanotify_info buffer
fanotify: use helpers to parcel fanotify_info buffer
fanotify: support secondary dir fh and name in fanotify_info
fanotify: record old and new parent and name in FAN_RENAME event
fanotify: record either old name new name or both for FAN_RENAME
fanotify: report old and/or new parent+name in FAN_RENAME event
fanotify: wire up FAN_RENAME event

 fs/notify/dnotify/dnotify.c        |   2 +-
 fs/notify/fanotify/fanotify.c      | 213 ++++++++++++++++++++++-------
 fs/notify/fanotify/fanotify.h      | 142 +++++++++++++++++--
 fs/notify/fanotify/fanotify_user.c |  82 +++++++++--
 fs/notify/fsnotify.c               |  53 ++++---
 fs/notify/group.c                  |   2 +-
 fs/notify/mark.c                   |  31 +++--
 include/linux/dnotify.h            |   2 +-
 include/linux/fanotify.h           |   5 +-
 include/linux/fsnotify.h           |   9 +-
 include/linux/fsnotify_backend.h   |  74 +++++-----
 include/uapi/linux/fanotify.h      |  12 ++
 12 files changed, 485 insertions(+), 142 deletions(-)
Signature · 1 line
2.33.1