Subject: Re: terabyte array and negative cylinders
To: <>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-kern
Date: 07/03/2003 10:44:34
--XvKFcGCOAo53UbWW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 02, 2003 at 05:07:22PM +0100, David Laight wrote:
> > I haven't really looked at the code yet, but just thought I'd toss this
> > out & see what other people thought--I haven't seen any mention of tera=
byte
> > arrays & NetBSD on the net anywhere.
>=20
> There are a lot (and I mean LOT) of places where the disk sector number
> is held in an int.  Much of the kernel was changed to use daddr_t (64bit)
> but that doesn't help much since all the disklabel/mbr handling only
> had 32 bit fields.
> Clearly the 32bit values could be unsigned, but that only gives a factor
> of 2 - and if you can build a 1TB disk, a 2TB one shouldn't be hard!

Note that negative values of 32 bit disk numbers are used as a special flag
in some places in the file system code. On-disk.

	-is

--XvKFcGCOAo53UbWW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPwPsrTCn4om+4LhpAQFp3Af+MoFJelWIZccgvssiQaGCW+4ii1pQjONK
T0SeXOhK6Ui98mX+62ZdoiRXfFTfSFCpz+m+W1hV9km2hlAL+qs/AY5/47TegdHa
BSx/3dN6253Vw0XZdhPDqWkrtffK3YvDcIGGzczvG2iGnmYP5rlvVzJun9W6Mzxv
1eI7deQqomNo6zJ6stP3JoSvZZA9FlkpZWBxRSMg/0uN84eNL9uYGzpa80O4qIw6
B0Rv/dLO5LLq2/45nwwq7c1zE4TxpDbUs9zOtwQsnwYrLydJj6CG1i/LnQb+kwh7
9qVLdapq9wwvkq3GPioi4KL/lHnF78g4R+ZMDeeLygA1Pafn5DADKA==
=T06Z
-----END PGP SIGNATURE-----

--XvKFcGCOAo53UbWW--