From 087ebb8a5c7f4f049a8de48b46f80c6143a08a7a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 14 Apr 2009 14:19:18 +0000 Subject: [PATCH] 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 --- sys/boot/i386/libi386/biosdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index a54418f37578..f84c515b2ca1 100644 --- a/sys/boot/i386/libi386/biosdisk.c +++ b/sys/boot/i386/libi386/biosdisk.c @@ -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