From owner-svn-src-all@FreeBSD.ORG Thu May 12 19:23:23 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41E74106566C; Thu, 12 May 2011 19:23:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id B180E8FC1B; Thu, 12 May 2011 19:23:22 +0000 (UTC) Received: by yie12 with SMTP id 12so698073yie.13 for ; Thu, 12 May 2011 12:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=dkpVMyD7e9jSGqG123CM5kECtbc0CuEenTyhqq7+XLg=; b=ESEfkyFeVu5EC4iSM2CVkZ5Pz6UrE2a29NblGG/EOK8DTq0nAWx+zKnKVF9rmuyz6d 6iXQmC6E7GEAkI7PMGHrh6qr7xycEKvmXjHe2Ex2K7TvcKeax637CrfoaGJHcMHlLnUM ADg2b/it2x5H++4wid39EpB/tqimHwln0ovkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=OD7xYHFgm0RmlSlF6KQqpZE3hSQ7a9tvFQGGs386mmFZ0R9kOeXPa5AqB+A3BjgYzZ UleqZYHqJa5RWDh3H6wj+8MVW0PA6CtQyyS18lag0re7/HRj9OqP/5Ch/FYXX0AN/oJ7 5x2T8w0d152QfmabL7EiFlqH4lev5a/uJbjck= Received: by 10.151.100.18 with SMTP id c18mr329056ybm.288.1305228201703; Thu, 12 May 2011 12:23:21 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([192.75.139.248]) by mx.google.com with ESMTPS id b4sm2682396ybo.23.2011.05.12.12.23.20 (version=SSLv3 cipher=OTHER); Thu, 12 May 2011 12:23:20 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DCC33A4.4040301@FreeBSD.org> Date: Thu, 12 May 2011 22:23:16 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <201105030733.p437XduH075011@svn.freebsd.org> <20110512151508.GK11355@acme.spoerlein.net> <4DCC0273.6010904@FreeBSD.org> In-Reply-To: <4DCC0273.6010904@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: svn-src-head@FreeBSD.org, =?UTF-8?B?VWxyaWNoIFNww7ZybGVpbg==?= , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org Subject: Re: svn commit: r221363 - head/sbin/geom/class/part X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 19:23:23 -0000 On 12.05.2011 18:53, Andrey V. Elsukov wrote: > On 12.05.2011 19:15, Ulrich Spörlein wrote: >>> Add "-a alignment" option to gpart(8). When it specified gpart(8) >>> tries to align partition start offset and size to be multiple of >>> alignment value. >>> >> >> Aligned to what? The disk or the partition scheme? Consider someone >> having a GELI partition of arbitrary alignment, how would a bsdlabel or >> GPT label inside this GELI partition be aligned when 4K alignment is >> requested? > > Each partition has three mandatory parameters: start offset, end offset > and partition type. These offsets are within top level provider. With 4K > alignment gpart(8) would try to adjust partition start and end offset to > be multiple of 4K. Most of GEOM classes report enough alignment data (stripesize and stripeoffset). They should be taken to account to properly handle alignment partitions on cascaded partitioned tables (bsdlabel inside MBR). -- Alexander Motin