[Top][All Lists]

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

Re: Bug#369822: ls -i stats unnecessarily

From: Eric Blake
Subject: Re: Bug#369822: ls -i stats unnecessarily
Date: Sat, 03 Jun 2006 22:52:12 +0000

> I can understand why readdir might have the behavior that you
> describe: it might be more efficient internally.  But that doesn't
> make it correct, or even "expected".  It's a bug in readdir.

I agree - readdir should ALWAYS match stat, even in the face of
mount points, if it is going to provide d_ino.  Even cygwin developers
took great care in their upcoming 1.5.20 release to ensure that
mount points are handled correctly, such that readdir reports
the same value that stat will provide.

Is there an easy configure or runtime test we can do to detect
buggy readdir implementations, and always do stat on those

Eric Blake

reply via email to

[Prev in Thread] Current Thread [Next in Thread]