From owner-freebsd-hackers Wed Mar 10 23:52: 1 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (Postfix) with ESMTP id 5A4A515254; Wed, 10 Mar 1999 23:51:54 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id XAA62027; Wed, 10 Mar 1999 23:51:29 -0800 (PST) (envelope-from dillon) Date: Wed, 10 Mar 1999 23:51:29 -0800 (PST) From: Matthew Dillon Message-Id: <199903110751.XAA62027@apollo.backplane.com> To: "Mark J. Taylor" Cc: freebsd-hackers@FreeBSD.ORG, jkh@FreeBSD.ORG Subject: Re: ccd driver problems with > 2GB segments, +fix References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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