Re: [PATCH 0/1] fs: inotify: Add full paths option to inotify

From: Amir Goldstein
Date: Tue Jun 07 2022 - 00:31:00 EST


On Tue, Jun 7, 2022 at 1:43 AM Oliver Ford <ojford@xxxxxxxxx> wrote:
>
> Adds an option to return the full path in inotify events. Currently, user space has to keep track of watch descriptors and paths, mapping the descriptor returned when reading inotify events to the path. Adding an option to return the full path simplifies user space code.

That is exactly what FAN_REPORT_DFID_NAME fanofiy mode is for.
Please try to use it and see if it fits your needs.

Thanks,
Amir.