public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomas Hruby <thruby@few.vu.nl>
To: linux-fsdevel@vger.kernel.org
Subject: readdir & bonnie++
Date: Fri, 2 Jun 2006 01:33:34 +0200	[thread overview]
Message-ID: <20060601233334.GA506@fspc268> (raw)

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

             reply	other threads:[~2006-06-01 23:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-01 23:33 Tomas Hruby [this message]
2006-06-02 15:00 ` readdir & bonnie++ 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060601233334.GA506@fspc268 \
    --to=thruby@few.vu.nl \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox