From: Miguel Subject: Re: "df -i" support Date: Fri, 14 May 2004 20:26:27 +0200 Message-ID: <20040514202627.18ddc7b2.turtle.power@wanadoo.es> References: <20040513093432.52d3d7a3.turtle.power@wanadoo.es> <1084439945.14090.6209.camel@tribesman.namesys.com> <20040514173227.5b0541b5.turtle.power@wanadoo.es> <200405141655.i4EGtrAT007250@turing-police.cc.vt.edu> <20040514194040.22389128.turtle.power@wanadoo.es> <1084557009.3263.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <1084557009.3263.7.camel@localhost.localdomain> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Jonathan Briggs Cc: Reiserfs mail-list On Fri, 14 May 2004 11:50:09 -0600 Jonathan Briggs wrote: > On Fri, 2004-05-14 at 11:40, Miguel wrote: > > On Fri, 14 May 2004 12:55:53 -0400 > > Valdis.Kletnieks@vt.edu wrote: > >=20 > > > On Fri, 14 May 2004 17:32:27 +0200, Miguel said: > > >=20 > > > > We are migrating our mtas from ext3 to reiserfs and the > > > > monitorization(a plugin) relies on the output of df -i, this > > > > output is very diferent between those filesystems, because > > > > reiserfs always return -1 as a total number of inodes. > > >=20 > > > The only reason you care about df -i is because on ext[23] and > > > similar, it is possible to run out of inodes before you run out of > > > files. Since reiserfs allocates inodes as needed, you can't run > > > out of them unless you run out of space - in which case your > > > monitoring system should be flagging that. > >=20 > > No, we check this value to know how many files are in that > > partition (well an aproximation). I hope that this is true for > > ext2/3, isn't? > >=20 >=20 > Would this help you? >=20 > # cat /proc/fs/reiserfs/md1/oidmap >=20 > At the end of oidmap is a line like this: > total: 46 [46/972] used: 176147 [exact] >=20 > I think the used: 176147 is pretty close to what you want. The number > goes up and down when I create or remove files. When I ran 'find / > -xdev | wc -l' I got 174425. I'm not sure where the extra 1,000+ > comes from. =20 >=20 > You would need to have CONFIG_REISERFS_PROC_INFO set in your kernel, > and of course you would need to replace md1 with whatever device you > were using. I can't set this kind of debuging in a production enviroment but those are the values that i'm seeking for. There's another way to get this?. Thanks for this hint. > --=20 > Jonathan Briggs > jbriggs@esoft.com >=20 --=20 La resistencia es f=FAtil todos ser=E9is asimilados