On Mon, Sep 5, 2022 at 11:59 AM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > Hi, > > Is there anything that needs special attention when switching from > FAN_MARK_MOUNT to FAN_MARK_FILESYSTEM? > Well, if you want to get events from all the mounts then switching to FAN_MARK_FILESYSTEM makes sense. It also allows you to request more event types. The only benefit of FAN_MARK_MOUNT that I can think of is that it's the only way to implement a subtree watch in the kernel (using a mark on bind mount) in case you can control which mount users access from (e.g. container) and if you only care about the events that are possible on a mount mark. Thanks, Amir.