From owner-cvs-src-old@FreeBSD.ORG Thu Jun 2 21:59:30 2011 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 43B17106566C for ; Thu, 2 Jun 2011 21:59:30 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 32BC68FC14 for ; Thu, 2 Jun 2011 21:59:30 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p52LxUCm092221 for ; Thu, 2 Jun 2011 21:59:30 GMT (envelope-from ae@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p52LxULA092220 for cvs-src-old@freebsd.org; Thu, 2 Jun 2011 21:59:30 GMT (envelope-from ae@repoman.freebsd.org) Message-Id: <201106022159.p52LxULA092220@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ae@repoman.freebsd.org using -f From: "Andrey V. Elsukov" Date: Thu, 2 Jun 2011 21:59:21 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/geom/class/part geom_part.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: Thu, 02 Jun 2011 21:59:30 -0000 ae 2011-06-02 21:59:21 UTC FreeBSD src repository Modified files: sbin/geom/class/part geom_part.c Log: SVN rev 222630 on 2011-06-02 21:59:21Z by ae Use stripesize and stripeoffset in the automatic calculation of partition offsets. If user requests specific alignment and provider's stripesize is not zero, then use a least common multiple from the stripesize and user specified value. Also fix "gpart resize" implementation: do not try to align the partition size, because the start offset may be not aligned. Instead align the end offset and then calculate size. Also use stripesize and stripeoffset for "gpart resize" command. Revision Changes Path 1.51 +33 -18 src/sbin/geom/class/part/geom_part.c