bin/59693: df & du output values double when redirected from cron

Adam Smith adam at internode.com.au
Tue Nov 25 15:53:16 PST 2003


On Tue, Nov 25, 2003 at 03:40:14PM -0800, Pawel Malachowski said:
> The following reply was made to PR bin/59693; it has been noted by GNATS.
> 
> From: Pawel Malachowski <pawmal-posting at freebsd.lublin.pl>
> To: Adam Smith <adam at internode.com.au>
> Cc: FreeBSD-gnats-submit at freebsd.org
> Subject: Re: bin/59693: df & du output values double when redirected from cron
> Date: Wed, 26 Nov 2003 00:37:31 +0100
> 
>  On Wed, Nov 26, 2003 at 09:47:56AM +1030, Adam Smith wrote:
>  
>  > Now let's look at the output:
>  > 
>  > 	$ df | grep ad0s2f
>  > 	/dev/ad0s2f                                        49028074 26711856 18393974    59%    /usr
>  > 
>  > 	$ cat output.txt 
>  > 	/dev/ad0s2f                                        98056148 53423708 36787952    59%    /usr
>  > 
>  > Both du and df produced the same results, while ls worked properly,
>  > and other programs with "digit" values such as iostat worked fine aswell.
>  
>  How about BLOCKSIZE in Yours and crons environment?

Well done!  "Bug" resolved :)

"df -k" now works fine.


-- 
Adam Smith	: adam at internode.com.au
Corporate Support & Provisioning
Internode	: http://www.internode.on.net
Phone		: (08) 8228 2999

Ô¿Ô¬


More information about the freebsd-bugs mailing list