From owner-cvs-src@FreeBSD.ORG Fri Nov 12 04:34:46 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA12516A4D0; Fri, 12 Nov 2004 04:34:46 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E99443D3F; Fri, 12 Nov 2004 04:34:46 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iAC4Yk2L068091; Fri, 12 Nov 2004 04:34:46 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iAC4Yk80068090; Fri, 12 Nov 2004 04:34:46 GMT (envelope-from marcel) Message-Id: <200411120434.iAC4Yk80068090@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 12 Nov 2004 04:34:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/gpt create.c migrate.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 04:34:46 -0000 marcel 2004-11-12 04:34:46 UTC FreeBSD src repository Modified files: sbin/gpt create.c migrate.c Log: Fix a braino: the partition size in the PMBR is in sectors, not bytes and 'mediasz' is in bytes. As it so happens, we define 'last' as the sector number of the last sector on the medium which also is the size of the PMBR partition. Therefore, use 'last' instead of 'mediasz'. Submitted by: Dan Markarian Revision Changes Path 1.9 +5 -5 src/sbin/gpt/create.c 1.12 +3 -3 src/sbin/gpt/migrate.c