BUG in fs/ext3/dir.c

Holger Kiehl Holger.Kiehl at dwd.de
Sun Dec 5 17:56:18 UTC 2004


On Sun, 5 Dec 2004, Holger Kiehl wrote:

> Hello
> 
> When using readdir() on a directory with many files or long file names
> it can happen that it returns the same file name twice. Attached is
> a program that demonstrates this.
> 
I forgot to mention how to call the program to show the bug. This is
done as follows:

     ./a.out 200 20
     BUG: 00000000000000000061 appears twice!
     stat() error (testbugdir/input/00000000000000000061) : No such file or directory
     BUG: 00000000000000000061 appears twice!
     unlink() error (testbugdir/output/00000000000000000061) : No such file or directory

or:

     ./a.out 50 61
     BUG: 0000000000000000000000000000000000000000000000000000000000020 appears twice!
     stat() error (testbugdir/input/0000000000000000000000000000000000000000000000000000000000020) : No such file or directory
     BUG: 0000000000000000000000000000000000000000000000000000000000020 appears twice!
     unlink() error (testbugdir/output/0000000000000000000000000000000000000000000000000000000000020) : No such file or directory

Holger




More information about the Ext3-users mailing list