Re: Fuse: directory cache eviction stopped working in the linux 6.9.X and onwards

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

 




On 12/30/24 05:41, Prince Kumar wrote:
> Hello Team,
> 
> I see a regression in the fuse-filesystem for the linux version 6.9.X
> and onwards, where the FOPEN_KEEP_CACHE flag is not working as
> intended. Just for background, I referred to this linux commit
> (https://github.com/torvalds/linux/commit/6433b8998a21dc597002731c4ceb4144e856edc4)
> to implement directory listing cache in jacobsa/fuse
> (https://github.com/jacobsa/fuse/pull/162).
> 
> Ideally, the kernel directory cache should be evicted if the
> user-daemon doesn't set FOPEN_KEEP_CACHE bit as part of the OpenDir
> response, but it's not getting evicted in the linux version 6.9.X and
> onwards.
> 
> Could you please help me in resolving this?

I think 6.9 added passthrough support. Are you using that? Also, 
FOPEN_CACHE_DIR is default when there is no fuse-server open method
defined - does your implementation have an open/dir_open?

I think the only user of FOPEN_CACHE_DIR is in fs/fuse/readdir.c and
that always checks if it is set - either the flag gets set or does not
come into role at all, because passthrough is used? 


Thanks,
Bernd




[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