svn commit: r228024 - head/sys/sparc64/sparc64
Marius Strobl
marius at FreeBSD.org
Sun Nov 27 15:49:47 UTC 2011
Author: marius
Date: Sun Nov 27 15:49:46 2011
New Revision: 228024
URL: http://svn.freebsd.org/changeset/base/228024
Log:
Update comment.
Modified:
head/sys/sparc64/sparc64/ata_machdep.c
Modified: head/sys/sparc64/sparc64/ata_machdep.c
==============================================================================
--- head/sys/sparc64/sparc64/ata_machdep.c Sun Nov 27 15:43:49 2011 (r228023)
+++ head/sys/sparc64/sparc64/ata_machdep.c Sun Nov 27 15:49:46 2011 (r228024)
@@ -36,14 +36,13 @@ sparc64_ata_disk_firmware_geom_adjust(st
{
/*
- * The Sun disk label only uses 16-bit fields for cylinders,
- * heads and sectors so the geometry of large IDE disks has
- * to be adjusted. If the disk is > 32GB at 16 heads and 63
- * sectors, the sectors have to be adjusted to 255. If the
- * the disk is even > 128GB, additionally adjust the heads
- * to 255.
- * XXX the OpenSolaris dad(7D) driver limits the mediasize
- * to 128GB.
+ * The VTOC8 disk label only uses 16-bit fields for cylinders, heads
+ * and sectors so the geometry of large disks has to be adjusted.
+ * If the disk is > 32GB at 16 heads and 63 sectors, adjust to 255
+ * sectors (this matches what the OpenSolaris dad(7D) driver does).
+ * If the the disk is even > 128GB, additionally adjust the heads to
+ * 255. This allows disks up to the 2TB limit of the extended VTOC8.
+ * XXX the OpenSolaris dad(7D) driver limits the mediasize to 128GB.
*/
if (disk->d_mediasize > (off_t)65535 * 16 * 63 * disk->d_sectorsize)
disk->d_fwsectors = 255;
More information about the svn-src-all
mailing list