From owner-freebsd-hackers Fri May 31 03:19:15 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA03698 for hackers-outgoing; Fri, 31 May 1996 03:19:15 -0700 (PDT) Received: from sivka.rdy.com (sivka.rdy.com [205.149.182.19]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id DAA03693; Fri, 31 May 1996 03:19:11 -0700 (PDT) Received: from dima@localhost by sivka.rdy.com id DAA06001; (8.7/RDY) Fri, 31 May 1996 03:16:29 -0700 (PDT) From: "Dima Ruban" Message-Id: <960531031628.ZM5998@sivka.rdy.com> Date: Fri, 31 May 1996 03:16:27 -0700 In-Reply-To: Philippe Regnauld "Re: df && du" (May 31, 11:33am) References: <199605310933.LAA01665@tetard.hsc.fr> Organization: HackerDome, Inc. X-Mailer: Z-Mail (4.0b.514 14may96) To: Philippe Regnauld , mpp@freefall.freebsd.org (Mike Pritchard) Subject: Re: df && du Cc: hackers@FreeBSD.ORG (hackers) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On May 31, 11:33am, Philippe Regnauld wrote: > Subject: Re: df && du > Mike Pritchard =E9crit / writes: > > > /dev/wd0s1e 30206 24720 3068 89% /var > > > > > > altair# cd /var > > > altair# du -s . > > > 12776 . > > > altair# > > > > > > 12776 (du result) not even close to 24720 (df output) > > > > 12776 * 2 =3D 25552, which is pretty close. Did you run df with the > > BLOCKSIZE environment variable set to "K", and du from > > one without it being set? > > > > Try "du -sk" and see if you get something that is close to df's outpu= t. > > Anyway, I think du is broken in most of its implementation; > it seems to have serious problems with links and such. I didn't mean, that `du' is broken ... Looks like something (wu-ftpd or apache) keeps open files or something ... It looks like it, becaus problem fixes itself after rebooting. > > A friend of mine's written a realdu utility some time ago, > on SunOS 4.1.2 -- it also works on 2.1.0. I think it also > supports the standard options (for scripts who rely on it). > > But it's a bit slower in 'real' mode. > > Anyone interested? > > -- Phil > > > -- > +-------------------+---------------------------------------+----------= -------+ > | Philippe Regnauld |_______Herve Schauer Consultants_______| regnauld@= hsc.fr | > +-------------------+FreeBSD - Turning PCs into Workstations+-----------------+ > > > >-- End of excerpt from Philippe Regnauld -- = -- dima