[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: df && du
From:       "Dima Ruban" <dima () sivka ! rdy ! com>
Date:       1996-05-31 10:16:27
[Download RAW message or body]

On May 31, 11:33am, Philippe Regnauld wrote:
> Subject: Re: df && du
> Mike Pritchard écrit / 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 = 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 output.
>
> 	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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic