From: Chris Mason <mason@suse.com>
To: Jeff Breidenbach <jeff@jab.org>
Cc: Chris Wedgwood <cw@f00f.org>, reiserfs-list@namesys.com
Subject: Re: fast approximate file count
Date: 23 Sep 2002 09:07:53 -0400 [thread overview]
Message-ID: <1032786474.3489.370.camel@tiny> (raw)
In-Reply-To: <1032748227.30721.5.camel@yodel>
On Sun, 2002-09-22 at 22:30, Jeff Breidenbach wrote:
> df -i does not work for reiserfs, at least under Debian 3.0.
> For example, the following partition is actually more than 10%
> full.
>
> Filesystem Inodes IUsed IFree IUse% Mounted on
> /dev/sdb1 4294967295 0 4294967295 0% /home/archive
>
> >From responses so far, my understanding is there may be
> a partition-wide file counter possible in the future.
>
> However, it also sounds like there is little to no chance of a
> reiserfs-specific fast approximate file counter that will work on a
> directory subtree, even if that subtree is very wide and shallow.
Correct, that information isn't really stored. Not very hard to deal
with from an application point of view though
ln -s 8,765,432 num_files
8765432 doesn't have to exist, you can just read the symbolic link.
Note that if each file name has a fixed size, you can deduce the number
of files in the directory from the directory size.
-chris
prev parent reply other threads:[~2002-09-23 13:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=1032786474.3489.370.camel@tiny \
--to=mason@suse.com \
--cc=cw@f00f.org \
--cc=jeff@jab.org \
--cc=reiserfs-list@namesys.com \
/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 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.