RE: [PATCH] ovl: skip stale entries in impure dir iteration

From: Daejun Park

Date: Tue Nov 10 2026 - 23:51:01 EST


Your mail below did not reach my mailbox, so I could not reply to it
directly.

https://lore.kernel.org/all/CAOQ4uxgxYZqE=rv5ZYrbyB0cYi_qS-bv_4UCbDwGJoMGg1iNhQ@xxxxxxxxxxxxxx/

On Tue, Nov 10, 2026 at 04:28:32PM +0100, Amir Goldstein wrote:
> I am sorry, but this is way too complex to deal with a problem which
> is not important enough IMO.
>
> POSIX does not define the exact behavior of readdir of a directory
> being changed in this way and I don't think that the current behavior
> of ext or overlayfs+ext4 is a gross violation of POSIX or that it could
> break applications.
>
> I would be happy to be proven otherwise.

Thanks for the review. I'll drop this patch.

I looked for a program that breaks on the stale d_ino and did not find
one. Of the d_ino users I read (find -inum, gnulib fts, glibc getcwd(),
nfsd READDIRPLUS), none does anything wrong with an entry whose file
is already gone.

Best regards,
Daejun