From owner-freebsd-geom@FreeBSD.ORG Sun Sep 13 19:03:11 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A2591065670 for ; Sun, 13 Sep 2009 19:03:11 +0000 (UTC) (envelope-from gfritz@gmail.com) Received: from mail-yw0-f179.google.com (mail-yw0-f179.google.com [209.85.211.179]) by mx1.freebsd.org (Postfix) with ESMTP id C7F318FC0A for ; Sun, 13 Sep 2009 19:03:10 +0000 (UTC) Received: by ywh9 with SMTP id 9so3481483ywh.32 for ; Sun, 13 Sep 2009 12:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=JcYa0EZqACy7As3rXJ8OzOQF+da2NduP7VSQhf7/8aY=; b=wU6k/Yd0VPPFdtP+IeRE4w8knKYXlx2gYS1uNJ+EVI8q/pIbCGITOymiuhdASiAp/S jIHCW4w/UL/3FOrvQc1X41JUD3re4qz2LdULH1zA4jzvv6bBdqIqyCCGynLamGq2/9UX udf0yp1QkdMkAQZJ+ovwZ7vkX0JSIa3Gmqdw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Ck4PpqfKaNq6KcNaWOxip+p5igHRIn27yw6evS3pCe53hPEhsSzrDKTt0HNcDgyGxj jZzFHcdJ4K8HogusdzoTAPHCzFGpqv8iGCjiB7e7WOjmg+xMa8yWezU2yJDeUKSILvdW 5hcve+ezGxwKYTU5LMiTvO+hkutrfkV5Yn+PE= Received: by 10.90.125.3 with SMTP id x3mr3299866agc.23.1252866713443; Sun, 13 Sep 2009 11:31:53 -0700 (PDT) Received: from dev.null (235-12-66-208.dsl.cust.wirelessbeehive.com [208.66.12.235]) by mx.google.com with ESMTPS id 17sm6815908agd.66.2009.09.13.11.31.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 13 Sep 2009 11:31:52 -0700 (PDT) Received: by dev.null (Postfix, from userid 1001) id B75593C9013; Sun, 13 Sep 2009 12:31:50 -0600 (MDT) Date: Sun, 13 Sep 2009 12:31:50 -0600 From: Geoff Fritz To: freebsd-geom@freebsd.org Message-ID: <20090913183150.GA48701@dev.null> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: gpart(8) not honoring sector sizes correctly? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2009 19:03:11 -0000 I just recently started using gpart, and I ran into what I think might be a bug. I'm using FreeBSD/amd64 8.0-BETA4 I have a geli provider with a 4096 sector size. When I issued a "gpart add -s 1g -t freebsd_ufs ad0.eli" on this device, it appears the command assumes a 512-byte sector size, resulting in a partition that is 8G in size. The bsdlabel command handles this correctly, so I assumed that gpart should. Is this a bug? I only began messing with gpart after reading that it's related (I think) to getting the new bsdlabel in FreeBSD 8.0 to utilize 26 partitions (instead of the normal 8). Is there any documentation on how to do this? Thanks. -- Geoff Fritz