From owner-freebsd-current@FreeBSD.ORG Thu Apr 8 14:24:14 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 49C27106566B for ; Thu, 8 Apr 2010 14:24:14 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 0CECE8FC1E for ; Thu, 8 Apr 2010 14:24:13 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 257EC1FFC22; Thu, 8 Apr 2010 14:24:13 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id E7866844C6; Thu, 8 Apr 2010 16:24:12 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= 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> Date: Thu, 08 Apr 2010 16:24:12 +0200 In-Reply-To: (Alexey Tarasov's message of "Thu, 8 Apr 2010 18:12:22 +0400") Message-ID: <86mxxet437.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 14:24:14 -0000 Alexey Tarasov writes: > Ok, in case of GPT? :-) I doubt it, but I don't know for sure. > GPT implementation can be the simplest solution to this problem > compared to implementing additional ATA commands to determine if disk > is in Advanced Format. There are two issues: 1) There is already an ATA command to report both physical and logical sector sizes, but the disk lies - it always reports 512/512. 2) The disk may have already been formatted on a system that doesn't support 4k sectors, and may contain unaligned partitions and file systems, which won't be visible if we forcibly and unconditionally use 4k sectors. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no