From owner-freebsd-i386@FreeBSD.ORG Fri Mar 5 11:30:16 2004 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7320616A4D9 for ; Fri, 5 Mar 2004 11:30:16 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C14AE43D6A for ; Fri, 5 Mar 2004 11:30:15 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i25JUFbv001943 for ; Fri, 5 Mar 2004 11:30:15 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i25JUFSo001942; Fri, 5 Mar 2004 11:30:15 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 5 Mar 2004 11:30:15 -0800 (PST) Resent-Message-Id: <200403051930.i25JUFSo001942@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Quiet Maks Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D824516A4F2 for ; Fri, 5 Mar 2004 11:27:22 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1B4643D45 for ; Fri, 5 Mar 2004 11:27:22 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i25JRM72012349 for ; Fri, 5 Mar 2004 11:27:22 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i25JRM90012348; Fri, 5 Mar 2004 11:27:22 -0800 (PST) (envelope-from nobody) Message-Id: <200403051927.i25JRM90012348@www.freebsd.org> Date: Fri, 5 Mar 2004 11:27:22 -0800 (PST) From: Quiet Maks To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: i386/63815: boot loader waste a lot of time (10 min) while booting from hard disk X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 19:30:16 -0000 >Number: 63815 >Category: i386 >Synopsis: boot loader waste a lot of time (10 min) while booting from hard disk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 05 11:30:15 PST 2004 >Closed-Date: >Last-Modified: >Originator: Quiet Maks >Release: 5.2.1-RELEASE >Organization: >Environment: >Description: While booting from hard disk, after "FreeBSD/i386 bootstrap loader, Revision 1.1" starts, the loader hangs for a whiles until the kernel to be loaded. >How-To-Repeat: The reason is an attempt in i386/.../biosdisk.c to open hard disk each time when the file have to be read. If hard disk contains a recursive extended partition with wrong slice offset specification (prepared by another OS), the disk opening may cause the reading of a sector beyond hard disk limit. Such request is handled by BIOS for a some seconds, and been repeated multiple times, this situation dramatically delay a boot process. >Fix: Add a check of the requested sector to be in hard disk limit's inside the bd_read() function in the biosdisk.c, and do not perform BIOS read if the check fails. >Release-Note: >Audit-Trail: >Unformatted: