From james@jrv.org  Thu Apr 16 10:23:59 2009
Return-Path: <james@jrv.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0537D1065672
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Apr 2009 10:23:59 +0000 (UTC)
	(envelope-from james@jrv.org)
Received: from mail.jrv.org (adsl-70-243-84-13.dsl.austtx.swbell.net [70.243.84.13])
	by mx1.freebsd.org (Postfix) with ESMTP id 5501B8FC1A
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Apr 2009 10:23:58 +0000 (UTC)
	(envelope-from james@jrv.org)
Received: from bigtex.housenet.jrv (localhost [127.0.0.1])
	by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n3G9iHRu059072
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Apr 2009 04:44:17 -0500 (CDT)
	(envelope-from james@bigtex.housenet.jrv)
Received: (from root@localhost)
	by bigtex.housenet.jrv (8.14.3/8.14.3/Submit) id n3G9iHBg059071;
	Thu, 16 Apr 2009 04:44:17 -0500 (CDT)
	(envelope-from james)
Message-Id: <200904160944.n3G9iHBg059071@bigtex.housenet.jrv>
Date: Thu, 16 Apr 2009 04:44:17 -0500 (CDT)
From: james@jrv.org
Reply-To: james@jrv.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: can't boot UFS on > 2TB GTP disk
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         133774
>Category:       bin
>Synopsis:       [boot] [gpt] can't boot UFS on > 2TB GPT disk
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 16 10:30:02 UTC 2009
>Closed-Date:    Fri Apr 17 17:27:15 UTC 2009
>Last-Modified:  Fri Apr 17 17:27:15 UTC 2009
>Originator:     User &
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD bigback.housenet.jrv 8.0-CURRENT FreeBSD 8.0-CURRENT #1 r190917M: Wed Apr 15 21:24:24 CDT 2009 james@bigback.housenet.jrv:/usr/obj/usr/src/sys/BIGTEX amd64

i386 or amd64

>Description:
If the UFS root partition is beyond the 2 TB point then beastie fails to load the kernel or boot.

>How-To-Repeat:
Place the / partition above the 2 TB mark on a disk and try to boot.

>Fix:

Index: sys/boot/i386/libi386/biosdisk.c
===================================================================
--- sys/boot/i386/libi386/biosdisk.c    (revision 190917)
+++ sys/boot/i386/libi386/biosdisk.c    (working copy)
@@ -83,7 +83,7 @@
     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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Thu Apr 16 21:20:00 UTC 2009 
State-Changed-Why:  
I've committed the patch to HEAD, but I will keep this bug as a reminder 
to get it into 7.2. 


Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: jhb 
Responsible-Changed-When: Thu Apr 16 21:20:00 UTC 2009 
Responsible-Changed-Why:  
I've committed the patch to HEAD, but I will keep this bug as a reminder 
to get it into 7.2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133774 
State-Changed-From-To: patched->closed 
State-Changed-By: jhb 
State-Changed-When: Fri Apr 17 17:26:45 UTC 2009 
State-Changed-Why:  
Fix merged to 6.x, 7.x, and 7.2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133774 
>Unformatted:
