Partition the fanotify watchers by type
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest14 patches 6 repliesIn review
- v210 patches 20 repliesSuperseded
- v1 RFC5 patches 6 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | fsnotify: rename fsnotify group flag macrosfs/ fs/ fs/ +3 more | +8 | 0 replies | |
| 2/14 | fsnotify: introduce fsnotify group typesfs/ fs/ fs/ +2 more | +72 | 0 replies | |
| 3/14 | fsnotify: separate the events bitmask macros by group typefs/ fs/ fs/ +4 more | +124 | 0 replies | |
| 4/14 | fanotify: test event->type instead of event mask when possiblefs/ fs/ fs/ +1 more | +41 | 0 replies | |
| 5/14 | fsnotify: do not report mount events with fsnotify()fs/ | +66 | 0 replies | |
| 6/14 | fanotify: gate filesystem event classification by group typefs/ | +60 | 0 replies | |
| 7/14 | fanotify: define event mask constants as 64bitfs/ include/ | +68 | 0 replies | |
| 8/14 | fanotify: define new FAN_NS_MNT_* constantsfs/ fs/ include/ +4 more | +27 | 0 replies | |
| 9/14 | fanotify: gate event mask in fanotify_mark() by group typefs/ | +81 | 1 reply | |
| 10/14 | fanotify: introduce FAN_REPORT_MNTIDfs/ include/ include/ | +23 | 1 reply | |
| 11/14 | fanotify: introduce FAN_EVENT_MATCH() macroinclude/ | +9 | 1 reply | |
| 12/14 | selftests/filesystems: create fanotify test dirtools/ tools/ tools/ +2 more | +1 | 0 replies | |
| 13/14 | selftests/fanotify: update the uapi tools header copytools/ | +67 | 0 replies | |
| 14/14 | selftests/fanotify: test the FAN_REPORT_MNTID modetools/ tools/ | +89 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/14] Partition the fanotify watchers by type
Jan,
As discussed on the "namespace monitoring" patch set [1], the proposed namespace events do not need to be mixed on the same group with legacy fanotify filesystem events.
The mount events are already not mixable with filesystem events, but we want to be able to mix them with the new namespace events.
Therefore, introduce the concept of "watcher type" where all the legacy events belong to the filesystem watcher type and the new mount events belong to a new namespace watcher type.
The new watcher type is free to reuse most of the 32bit mask space that we have internally in fsnotify for event masks.
The prep patch set only does the partitioning by watcher type. Followup namepsace events work in available for review in my tree [2].
If you are fine with this plan and have time to review the patches, perhaps it is not too late to stage this prep series for next cycle?
Otherwise, we could aim for merging this together with the namespace events for the following cycle.
Thanks,
Amir.
[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
[2] https://github.com/amir73il/linux/commits/fan_mark_userns
Amir Goldstein (14):
fsnotify: rename fsnotify group flag macros
fsnotify: introduce fsnotify group types
fsnotify: separate the events bitmask macros by group type
fanotify: test event->type instead of event mask when possible
fsnotify: do not report mount events with fsnotify()
fanotify: gate filesystem event classification by group type
fanotify: define event mask constants as 64bit
fanotify: define new FAN_NS_MNT_* constants
fanotify: gate event mask in fanotify_mark() by group type
fanotify: introduce FAN_REPORT_MNTID
fanotify: introduce FAN_EVENT_MATCH() macro selftests/filesystems: create fanotify test dir selftests/fanotify: update the uapi tools header copy selftests/fanotify: test the FAN_REPORT_MNTID mode
fs/notify/fanotify/fanotify.c | 186 +++++++++-----
fs/notify/fanotify/fanotify.h | 38 ++-
fs/notify/fanotify/fanotify_user.c | 230 ++++++++++++------
fs/notify/fsnotify.c | 106 +++++---
fs/notify/group.c | 15 +-
fs/notify/inotify/inotify_user.c | 2 +-
fs/notify/mark.c | 2 +-
include/linux/fanotify.h | 45 +++-
include/linux/fsnotify.h | 6 +-
include/linux/fsnotify_backend.h | 83 +++++--
include/trace/misc/fsnotify.h | 4 +-
include/uapi/linux/fanotify.h | 100 +++++---
kernel/audit_fsnotify.c | 2 +-
tools/include/uapi/linux/fanotify.h | 100 +++++---
tools/testing/selftests/Makefile | 2 +-
.../{mount-notify => fanotify}/.gitignore | 0
.../{mount-notify => fanotify}/Makefile | 0
.../mount-notify_test.c | 51 +++-
.../mount-notify_test_ns.c | 54 +++-
19 files changed, 707 insertions(+), 319 deletions(-)
rename tools/testing/selftests/filesystems/{mount-notify => fanotify}/.gitignore (100%)
rename tools/testing/selftests/filesystems/{mount-notify => fanotify}/Makefile (100%)
rename tools/testing/selftests/filesystems/{mount-notify => fanotify}/mount-notify_test.c (90%)
rename tools/testing/selftests/filesystems/{mount-notify => fanotify}/mount-notify_test_ns.c (90%)Signature · 1 line
2.55.0