From owner-cvs-all@FreeBSD.ORG Wed Nov 17 04:27:18 2004 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 4C5FF16A4CE; Wed, 17 Nov 2004 04:27:18 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27A2743D53; Wed, 17 Nov 2004 04:27:18 +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 iAH4RIfl024424; Wed, 17 Nov 2004 04:27:18 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iAH4RI3q024423; Wed, 17 Nov 2004 04:27:18 GMT (envelope-from marcel) Message-Id: <200411170427.iAH4RI3q024423@repoman.freebsd.org> From: Marcel Moolenaar Date: Wed, 17 Nov 2004 04:27:18 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sbin/gpt create.c migrate.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: Wed, 17 Nov 2004 04:27:18 -0000 marcel 2004-11-17 04:27:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sbin/gpt create.c migrate.c Log: MFC create.c:1.9, migrate.c:1.12: 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'. Revision Changes Path 1.6.2.2 +5 -5 src/sbin/gpt/create.c 1.7.2.4 +3 -3 src/sbin/gpt/migrate.c