Subject: CVS commit: src/sys/dev/ata
To: None <source-changes@NetBSD.org>
From: David Brownlee <abs@netbsd.org>
List: source-changes
Date: 01/15/2006 19:51:06
Module Name:	src
Committed By:	abs
Date:		Sun Jan 15 19:51:06 UTC 2006

Modified Files:
	src/sys/dev/ata: wd.c

Log Message:
cast 16bit atap_capacity to u_int64_t before << 16. (assigned to
a u_int64_t variable). Fixes 1 to 2 TB disks in qemu. Tested with
1200GB and to a lesser extent 2047GB sparse files. For reference
an empty FFS1 filesystem on a 1200GB sparse file uses 19GB of disk.


To generate a diff of this commit:
cvs rdiff -r1.317 -r1.318 src/sys/dev/ata/wd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.