On Thu, May 5, 2022 at 7:28 AM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > Here's David's patch, which introduces new infrastructure for this purpose: > > https://lore.kernel.org/all/158204559631.3299825.5358385352169781990.stgit@xxxxxxxxxxxxxxxxxxxxxx/ > > I'm wondering if this could be added to fsnotify/fanotify instead? I suppose we could. Speaking of David's patch, I think that getting fanotify events via watch_queue instead of read() could also be a nice improvement. > > After all, the events are very similar, except it's changes to the > mount tree, not the dentry tree that need to be reported. > There is already one precedent to event on mount tree change in fsnotify - inotify IN_UNMOUNT Thanks, Amir.