From owner-freebsd-bugs@FreeBSD.ORG Tue May 4 00:30:01 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 51C1E1065670 for ; Tue, 4 May 2010 00:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1710C8FC1E for ; Tue, 4 May 2010 00:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o440U0bB071356 for ; Tue, 4 May 2010 00:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o440U0X5071355; Tue, 4 May 2010 00:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 4 May 2010 00:30:00 GMT Resent-Message-Id: <201005040030.o440U0X5071355@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeremy Faulkner Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE29F106564A for ; Tue, 4 May 2010 00:24:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id CE3B38FC12 for ; Tue, 4 May 2010 00:24:16 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o440OGKG028307 for ; Tue, 4 May 2010 00:24:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o440OGVW028300; Tue, 4 May 2010 00:24:16 GMT (envelope-from nobody) Message-Id: <201005040024.o440OGVW028300@www.freebsd.org> Date: Tue, 4 May 2010 00:24:16 GMT From: Jeremy Faulkner To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/146277: gpart add -s 128M creates 1GB partition on 4k sectorsize disk X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2010 00:30:01 -0000 >Number: 146277 >Category: misc >Synopsis: gpart add -s 128M creates 1GB partition on 4k sectorsize disk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 04 00:30:00 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jeremy Faulkner >Release: 9-current >Organization: >Environment: FreeBSD planet 9.0-CURRENT FreeBSD 9.0-CURRENT #1: Sun May 2 20:31:09 EDT 2010 gldisater@planet:/usr/obj/usr/src/sys/GENERIC i386 >Description: When using gpart to create a GPT partition on a device that has a sector size of 4k it will create a partition that is much larger than requested. It appears to be using 512 sector size to calculate the number of sectors to allocate even when the sector size is not 512. >How-To-Repeat: gnop create -S 4k gpart create -s GPT gpart add -s 512M -t freebsd-swap gpart will create a 4GB partition instead of a 512M partition >Fix: >Release-Note: >Audit-Trail: >Unformatted: