Re: duplicate entries on ext3 when using readdir/readdir64

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

 



On Fri, 2008-08-01 at 09:47 -0500, Eric Sandeen wrote:
> Hm, a bog-simple test here doesn't show any trouble:
> 
> [root@inode dirtest]# for I in `seq 0 10500`; do touch $I; done
> [root@inode dirtest]# ls | sort -n | uniq -d
> [root@inode dirtest]# ls | wc -l
> 10501
> 
> does that reflect what you're doing?  Do you have a testcase you can share?

Yes, but I've written incorrect values, sorry. It's a little bit higher,
a run of my program outputs this on 2.6.24-19-generic (ubuntu 8.04.1):

expected 11778 files, but readdir reports 11779
expected 11862 files, but readdir64 reports 11863

And on 2.6.18-92.1.6.el5 (rhel 5.2):
expected 72922 files, but readdir reports 72923
expected 73131 files, but readdir64 reports 73132

The testcase is here: <http://www.unet.univie.ac.at/~a9100884/readdir.c>
> -Eric

Tom

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux