From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Drokin Subject: Re: fast approximate file count Date: Sun, 22 Sep 2002 14:36:12 +0400 Message-ID: <20020922143612.A22422@namesys.com> References: <20020922003546.A19135@namesys.com> <20020922054309.V8204@vestdata.no> Mime-Version: 1.0 Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com Content-Disposition: inline In-Reply-To: <20020922054309.V8204@vestdata.no> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ragnar Kj?rstad Cc: Jeff Breidenbach , reiserfs-list@namesys.com Hello! On Sun, Sep 22, 2002 at 05:43:09AM +0200, Ragnar Kj?rstad wrote: > > If you never/very seldom delete files, > > you can create new file (any size), execute ls -i on it, like this: > > 549661 z > > This number is OID, oid grows up in case that there were no deletions/gaps > > from previous deletions in OID. > > OID is total number of objects on FS in this case. > Hmm, why doesn't statfs return the correct number of inodes in use? I > think that's what you would want to use here. Well, something like that can be done even now, I'll think about it tomorrow. Bye, Oleg