Subject: Re: removing incorrect 32 bit ufs casts
To: Pavel Cahyna <pavel.cahyna@st.ms.mff.cuni.cz>
From: Darrin B. Jewell <dbj@NetBSD.org>
List: tech-kern
Date: 07/22/2004 09:49:03
Pavel Cahyna <pavel.cahyna@st.ms.mff.cuni.cz> 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.
Darrin