Re: [PATCH] ovl: skip stale entries in merge dir cache iteration

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

 



On Fri, 4 Jun 2021 at 12:43, Amir Goldstein <amir73il@xxxxxxxxx> wrote:
>
> On Mon, Apr 26, 2021 at 6:20 PM Amir Goldstein <amir73il@xxxxxxxxx> wrote:
> >
> > On the first getdents call, ovl_iterate() populates the readdir cache
> > with a list of entries, but for upper entries with origin lower inode,
> > p->ino remains zero.
> >
> > Following getdents calls traverse the readdir cache list and call
> > ovl_cache_update_ino() for entries with zero p->ino to lookup the entry
> > in the overlay and return d_ino that is consistent with st_ino.
> >
> > If the upper file was unlinked between the first getdents call and the
> > getdents call that lists the file entry, ovl_cache_update_ino() will not
> > find the entry and fall back to setting d_ino to the upper real st_ino,
> > which is inconsistent with how this object was presented to users.
> >
> > Instead of listing a stale entry with inconsistent d_ino, simply skip
> > the stale entry, which is better for users.
> >
>
> Miklos,
>
> I forgot to follow up on this patch.
> Upstream xfstest overlay/077 is failing without this patch.

Can't reproduce (on ext4/xfs and "-oxino=on").

Is there some trick?

Thanks,
Miklos



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux