linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* readdir & bonnie++
@ 2006-06-01 23:33 Tomas Hruby
  2006-06-02 15:00 ` Bob Copeland
       [not found] ` <e48344780606031942hbc46461q21a03894b83174df@mail.gmail.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Tomas Hruby @ 2006-06-01 23:33 UTC (permalink / raw)
  To: linux-fsdevel

Hi all,

I was testing our fs project using the bonnie++ tool and the following issue came
up. 

Bonnie++ creates a directory with 16384 files. Then it calls readdir in a loop
to read all the entries and calls stat for each. The test fails since only 16383
entries were returned (one is missing). According to my logs our readdir calls
filldir on the last item as well. Also strace says that all entries were
returned. But the last one is missing. Moreover if I use ls -l on the same
directory, all 16384 entries are returned.  I don't know what is the difference
between the readdir loop in bonnie++ and in ls, but I expect a similar loop.
Perhaps using getdents direcly?

Thanks for any suggestions,

cheers,

		Tomas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-05 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01 23:33 readdir & bonnie++ Tomas Hruby
2006-06-02 15:00 ` Bob Copeland
     [not found] ` <e48344780606031942hbc46461q21a03894b83174df@mail.gmail.com>
2006-06-04  9:48   ` Tomas Hruby
2006-06-05 13:06     ` Akshat Aranya
2006-06-05 15:48       ` Tomas Hruby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).