Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2009 14:19:18 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191061 - head/sys/boot/i386/libi386
Message-ID:  <200904141419.n3EEJIpw009142@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Apr 14 14:19:18 2009
New Revision: 191061
URL: http://svn.freebsd.org/changeset/base/191061

Log:
  Use a disk address instead of an int to hold the starting offset of an
  open partition.  This fixes access to partitions whose starting offset
  is >= 2 TB.
  
  Submitted by:	"James R. Van Artsdalen"  james jrv.org
  MFC after:	3 days

Modified:
  head/sys/boot/i386/libi386/biosdisk.c

Modified: head/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- head/sys/boot/i386/libi386/biosdisk.c	Tue Apr 14 14:02:43 2009	(r191060)
+++ head/sys/boot/i386/libi386/biosdisk.c	Tue Apr 14 14:19:18 2009	(r191061)
@@ -83,7 +83,7 @@ struct open_disk {
     int			od_cyl;			/* BIOS geometry */
     int			od_hds;
     int			od_sec;
-    int			od_boff;		/* block offset from beginning of BIOS disk */
+    daddr_t			od_boff;		/* block offset from beginning of BIOS disk */
     int			od_flags;
 #define BD_MODEINT13		0x0000
 #define BD_MODEEDD1		0x0001



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904141419.n3EEJIpw009142>