All of lore.kernel.org
 help / color / mirror / Atom feed
* fast approximate file count
@ 2002-09-21  5:36 Jeff Breidenbach
  2002-09-21 20:35 ` Oleg Drokin
       [not found] ` <20020923020703.GA4570@tapu.f00f.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Breidenbach @ 2002-09-21  5:36 UTC (permalink / raw)
  To: reiserfs-list


Didn't see this one on the FAQ.

Now that I have millions of small files on my reiserfs partition, I'd
like to know if there is reiserfs specific way to count them very
quickly.

While "find $DIR | wc -l" works and is quite accurate, it can take an
enormously long time. While "df" and dividing by a guesstimate of
the average file size is fast, I wonder if there is a way to do
better. Is there a prgram that can take advantage of reiserfs
specific metadata and quickly compute an approximate file count?
Especially if the directory tree structure is very shallow?

Cheers,
Jeff

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

end of thread, other threads:[~2002-09-23 13:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-21  5:36 fast approximate file count Jeff Breidenbach
2002-09-21 20:35 ` Oleg Drokin
     [not found]   ` <20020922054309.V8204@vestdata.no>
2002-09-22 10:36     ` Oleg Drokin
     [not found] ` <20020923020703.GA4570@tapu.f00f.org>
2002-09-23  2:30   ` Jeff Breidenbach
2002-09-23 13:07     ` Chris Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.