From owner-cvs-all@FreeBSD.ORG Sun Nov 2 22:24:50 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AD1816A4CF; Sun, 2 Nov 2003 22:24:50 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73DB943FBD; Sun, 2 Nov 2003 22:24:49 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hA36OnXJ091902; Sun, 2 Nov 2003 22:24:49 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hA36OnBC091901; Sun, 2 Nov 2003 22:24:49 -0800 (PST) (envelope-from marcel) Message-Id: <200311030624.hA36OnBC091901@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 2 Nov 2003 22:24:49 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libdisk open_ia64_disk.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2003 06:24:50 -0000 marcel 2003/11/02 22:24:49 PST FreeBSD src repository Modified files: lib/libdisk open_ia64_disk.c Log: Fix two bugs in the calculation of the last LBA of the GPT covered part of the disk. The first appears to be a typo and instead of dividing the media size with the sector size, we multiplied. The second is an off-by-1 error that's the result of mixing up count and index. The code in question is only applicable for virgin disks and is used to create the "whole" chunk, which covers only the GPT usable portion of the disk. Revision Changes Path 1.2 +2 -2 src/lib/libdisk/open_ia64_disk.c