Re: [fuse-devel] Semantics of fuse_notify_delete()

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

 



On Wed, 2 Aug 2023 at 16:43, Nikolaus Rath <Nikolaus@xxxxxxxx> wrote:

> Will think about how to best fix that. The problem is that LOOKUP for
> the ctrl file name always succeeds (no matter the directory), so we'd
> have to issue an additional NOTIFY_DELETE for every directory *and*
> there'd still be a race condition with LOOKUP(ctrl_file) being called
> in-between.

Only need to issue the NOTIFY_DELETE if the ctrl_file has actually
been looked up.  If it has, then yes, an extra NOTIFY_DELETE needs to
be done.  After having done NOTIFY_DELETE(ctrl_file) the
LOOKUP(ctrl_file) can just fail with -ENOENT.

Thanks,
Miklos



[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