svn commit: r191061 - head/sys/boot/i386/libi386
John Baldwin
jhb at FreeBSD.org
Tue Apr 14 14:19:19 UTC 2009
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
More information about the svn-src-head
mailing list