From owner-freebsd-current@FreeBSD.ORG Thu Apr 8 20:44:25 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09CB51065678 for ; Thu, 8 Apr 2010 20:44:25 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id BB6208FC1D for ; Thu, 8 Apr 2010 20:44:24 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:41e8:4158:889c:9c05] (unknown [IPv6:2001:7b8:3a7:0:41e8:4158:889c:9c05]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6C0E25C59; Thu, 8 Apr 2010 22:44:23 +0200 (CEST) Message-ID: <4BBE4032.3030806@andric.com> Date: Thu, 08 Apr 2010 22:44:34 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2pre) Gecko/20100404 Lanikai/3.1b2pre MIME-Version: 1.0 To: Alexey Tarasov References: <1A417529-F467-4411-970A-3FF41080AC61@lexasoft.ru> <868w8yukuy.fsf@ds4.des.no> <6313EB8E-D3DA-459F-A372-0E871359FA1C@lexasoft.ru> <86zl1et4rv.fsf@ds4.des.no> <86mxxet437.fsf@ds4.des.no> <86eiiqt3kp.fsf@ds4.des.no> <846676C4-C1B8-44DB-AA01-B664614DE59F@lexasoft.ru> <20100408172421.62d73a90@ernst.jennejohn.org> <4BBDF7D3.3050300@andric.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: gpart and sector size X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 20:44:25 -0000 On 2010-04-08 21:34, Alexey Tarasov wrote: > Thank you for the information. > In 8-STABLE snapshot 201002 diskinfo shows 512k sector size yet. > I will try CURRENT tomorrow. It looks like the code was MFC'd to stable/8 in r199443. However, even in -CURRENT, the sector size you see in diskinfo will also be 512B. For ada(4) disks, it seems the d_sectorsize field of geom_disk's struct disk is initialized using the _logical_ sector size, not the physical sector size (which may be a multiple of the logical sector size). That said, if the physical sector size is larger than the logical sector size, the d_stripesize field is initialized with it. So if you run "diskinfo -v" on the disk, what is the output for stripesize?