From owner-freebsd-hackers Thu Mar 11 9:11:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 5423015004; Thu, 11 Mar 1999 09:11:24 -0800 (PST) (envelope-from mjacob@feral.com) Received: from localhost (mjacob@localhost) by feral.com (8.8.7/8.8.7) with ESMTP id JAA28583; Thu, 11 Mar 1999 09:10:27 -0800 Date: Thu, 11 Mar 1999 09:10:27 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@feral-gw Reply-To: mjacob@feral.com To: Matthew Dillon Cc: "Mark J. Taylor" , freebsd-hackers@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: Re: ccd driver problems with > 2GB segments, +fix In-Reply-To: <199903110751.XAA62027@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Umm- I don't remember the details exactly but there were some fixes in NetBSD for this a while back. On Wed, 10 Mar 1999, Matthew Dillon wrote: > Interesting. What if each disk is 8GB and we set the stripe > size to 8GB? Won't that break the u_long ( i.e. was broken > before, and is still broken now ). Perhaps these variables > should be 64 bit quantities throughout except for the > bp->b_count? > > -Matt > Matthew Dillon > > > :Fix: > :The ccd driver has a variable "bcount" that is a long: it needs > :to be a u_long. And, a 64 bit int is shifted into a 32 bit int > :in ccdbuffer(): the 32 bit int must changed to be a 64 bit int. > : > :This second change has already been made in NetBSD (somebody else > :figured it out), where the ccd driver originated from. It was > :rather tricky to find: the math involving block numbers and ccd > :... > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message