Re: switching from FAN_MARK_MOUNT to FAN_MARK_FILESYSTEM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux