Subject: Re: removing incorrect 32 bit ufs casts
To: Pavel Cahyna <email@example.com>
From: Darrin B. Jewell <dbj@NetBSD.org>
Date: 07/22/2004 09:49:03
Pavel Cahyna <firstname.lastname@example.org> writes:
> On Tue, 20 Jul 2004 15:55:37 +0000, Darrin B. Jewell wrote:
> > I would like to commit the following patch which fixes some problems
> > when trying to use a ufs2 filesystem with more than 31 bits worth of
> > sectors (1tb).
> Are those really sectors? It seems that those variables actually hold
> block numbers, not sector numbers. (Where "blocks" are actually
> "fragments" on ufs.) So with larger fragments, this would mean more
> than 1 TB.
> Bye Pavel
The casts in ufs_strategy really are sectors.
The cast in ufs_bmaparray is in fragments, but we should also be
able to handle more than 2^31 fragments with ufs2.