Subject: Re: df command's storange result
To: Satoshi Hirai <hirais@po.teleway.ne.jp>
From: Bob Nestor <rnestor@augustmail.com>
List: port-mac68k
Date: 11/13/1999 20:34:35
Satoshi Hirai  (hirais@po.teleway.ne.jp) wrote:

>At 11:31 99/11/13 +0900, you wrote:
>> Hi!
>> 
>> Now I'm installing 1.4.1 to My Quadra 650.
>> 
>> I found df command's storange result after install.
>> 
>> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
>> /dev/sd0a
>>   1512673785 1512605929 -151199523   111%    /
>> /dev/sd0g   -1671831941
>> -1672291168 -4156271   100%    /usr
>> /dev/sd0e   -16638763 -16733435
>> -170040144   104%    /var
>> /dev/sd0f   -2010419977 -2011629862 30453190
>>    98%    /home
>> kernfs              1        1        0   100%
>> /kern
>> procfs              4        4        0   100%    /proc
>> 
>> There were many 'optimization changed from' message displayed when
>> install.  Such as; 
>> 
>>   optimization changed from SPACE to TIME
>>   optimization changed from TIME to SPACE
>> 
>> What can I do about this problem.
>> 
>> Thank you.
>> 
>> 
>> ---
>> Satoshi Hirai                                  From Kanagawa, JAPAN
>>                                     E-Mail: hirais@po.teleway.ne.jp
>> 
>
>I can not tell what did it means problem, because I'm in panic :-).
>
>The problem means some disk space size are displayed in negative
>number.  (It might be 0 or positive number.)
>
>Now I have found the solution.  I changed the Mkfs formatter from 1.46
>to 1.45.

I've looked at the Mkfs 1.45 vs. Mkfs 1.46 code again.  One change I made 
was to replace a write test for end of partition with a read test because 
it looked like that was a danger of stepping off the end of the partition 
and possibly corrupting an HFS partition that followed. Maybe that write 
was cleaning out some old garbage in the partition, although it appears 
to me that what it's writing is also a garbage buffer.  Anyway, since 
1.45 seems to works I've changed this back to a write test, but left the 
code in that zeros out the first part of the partition to clear any prior 
use by Linux-68k.

The new Mkfs 1.47 is now loaded on ftp.netbsd.org in
     /pub/NetBSD/arch/mac68k/installation/misc/Mkfs_1.47.sea.hqx

The sources are in
     /pub/NetBSD/arch/mac68k/installation/misc/src/Mkfs_1.47src.sea.hqx

I'd appreaciate hearing from anyone who uses this version.

Thanks,
-bob