duplicate entries on ext3 when using readdir/readdir64

Theodore Tso tytso at mit.edu
Wed Aug 6 04:46:09 UTC 2008

On Tue, Aug 05, 2008 at 12:53:51PM +0200, Thomas Trauner wrote:
> > How reproducible is this; can you reproduce it on this one filesystem?
> > Can you reproduce it on multiple filesystems?  What sort of file names
> > are you using?
> I made new tests with the code under
> <http://www.unet.univie.ac.at/~a9100884/readdir.c> on a bunch of freshly
> generated and empty filesystems, every about 38GB large, of type fat
> (aborted after about 22000 entries because it took to long), ext2, xfs,
> jfs and again ext3. All tests made with 2.6.24-19-generic (ubuntu
> 8.04.1).

I was able to reproduce using ext3.  It looks like it's caused by a
hash collision; but ext3 has code that's supposed to avoid returning a
directory entry doubled in this fashion.  I'll have to look into it.

	  		   		       - Ted

More information about the Ext3-users mailing list