Hi Alex, These two complementary APIs, FAN_REPORT_TARGET_FID (fanotify_init) and FAN_RENAME (fanotify_mark) were merged to kernel v5.17. Note that we used the fact that this is new API to fix a glitch that exists in the old APIs - it is possble to request CREATE/DELETE/MOVE events and flags FAN_ONDIR/FAN_EVENT_ON_CHILD for a non-directrory, but those events and flags are only relevant for directories. When the new APIs are used, ENOTDIR will be returned in such cases and this change is reflected in the man pages updates. The ENOTDIR error was added by later commits, one of them just merged to mainline, which are also mentioned in the commit message of the first patch. Both Jan and Matthew re-reviewed the changes to the ENOTDIR section. Thanks, Amir, Changes since v2: - Rearrange ENOTDIR errors section - Add more cases of ENOTDIR following fix patch Amir Goldstein (2): fanotify.7, fanotify_init.2: Document FAN_REPORT_TARGET_FID fanotify.7, fanotify_init.2, fanotify_mark.2: Document FAN_RENAME man2/fanotify_init.2 | 55 ++++++++++++++++++++++++++++++++++++++++---- man2/fanotify_mark.2 | 41 +++++++++++++++++++++++++++++++++ man7/fanotify.7 | 31 ++++++++++++++----------- 3 files changed, 109 insertions(+), 18 deletions(-) -- 2.25.1