From owner-cvs-src-old@FreeBSD.ORG Sat Feb 21 19:25:25 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86C02106566B for ; Sat, 21 Feb 2009 19:25:25 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 73B738FC1E for ; Sat, 21 Feb 2009 19:25:25 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1LJPPSm059171 for ; Sat, 21 Feb 2009 19:25:25 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1LJPPk6059170 for cvs-src-old@freebsd.org; Sat, 21 Feb 2009 19:25:25 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <200902211925.n1LJPPk6059170@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Sat, 21 Feb 2009 19:25:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom/part g_part_ebr.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 19:25:25 -0000 marcel 2009-02-21 19:25:13 UTC FreeBSD src repository Modified files: sys/geom/part g_part_ebr.c Log: SVN rev 188899 on 2009-02-21 19:25:13Z by marcel o When creating the EBR scheme, set the number of entries properly. Otherwise the minimum of 1 is used and you can only insert a single partition/slice and only at sector 0 (index 1). o When adding a partition/slice, recalculate the index after the start and size of the partition/slice are adjusted to make them a multiple of the track size. Since the precheck method sets the index based on the start of the partition as provided by the user, we know that we're off by at most 1 and adjusting the index is safe. Revision Changes Path 1.5 +2 -0 src/sys/geom/part/g_part_ebr.c