Re: adding mount notification to fanotify?

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

 



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.



[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