Subject: Re: unixfs problem, negative numbers
To: RiscBSD Mailing List <port-arm32@NetBSD.ORG>
From: Kjetil B. Thomassen <kjetil.b.thomassen@eunet.no>
List: port-arm32
Date: 02/28/1997 19:59:37
On Thu 27 Feb, Simon Melhuish wrote:
> Thanks for all the advice.
> 
> I have re-formatted my drive (and yes, it's on the internal interface), 
> giving RiscOS 1.92 GB. bb_riscbsd reported exactly the numbers I was 
> expecting this time (not negative!) and unixfs seems happy. Supposing it 
> does have trouble over 4161 cylinders, this leaves me with nearly 80 MB 
> of the BSD partition I should be able to write to safely.

It suddenly struck me why it fails with more than 2 GB.

It is probably using an integer variable for the size, and this
is a singed 32 bit entity in both BASIC and C.
This leaves room for exactly one less than 2 GB.

What do you say, Scott, will you fix this?

Kjetil B.
mailto:kjetil.b.thomassen@eunet.no