On Tue, Sep 19, 2023 at 12:42 PM Amir Goldstein <amir73il@xxxxxxxxx> wrote: > Those cases are demonstrated in the --filesystem functionality of the > pull request above, which handles "dynamic watches" instead of > having to setup watches recursively on all subdirs. The whole-filesystem mode is certainly the most interesting fanotify feature, and the lack of it the greatest weakness of inotify - but API-wise, it could have been implemented as a new "mask" flag in inotify_add_watch() with no extra API complexity. That still doesn't justify the huge complexity of fanotify.