From owner-freebsd-fs@FreeBSD.ORG Wed Oct 12 17:43:24 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A90EE106566B for ; Wed, 12 Oct 2011 17:43:24 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 685C78FC18 for ; Wed, 12 Oct 2011 17:43:24 +0000 (UTC) Received: by ggeq3 with SMTP id q3so1204701gge.13 for ; Wed, 12 Oct 2011 10:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ekBh3eHT9GSxnZpnyfY89maEJwJJtKRaKEMJYsbQq7I=; b=krLto2tensAdE2lf6GOJP1CpTvYR6UE5Z9WTBS0jVUwhgBl1IZM+prT/iLwNYTkPHK Ib9YdGjGJgvWklGToV3B5vKrJPAjBsqSdt5rVdM35vBnLD1G1ymTCoV5VtnSb7j9Yozx QKThCn/BgmnLqWgRgSFSXpRR3Cbuj4xyyiddA= MIME-Version: 1.0 Received: by 10.236.153.200 with SMTP id f48mr5018203yhk.114.1318441403812; Wed, 12 Oct 2011 10:43:23 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.236.103.33 with HTTP; Wed, 12 Oct 2011 10:43:23 -0700 (PDT) In-Reply-To: <20111012172912.GA27013@icarus.home.lan> References: <4E95AE08.7030105@lerctr.org> <20111012155938.GA24649@icarus.home.lan> <4E95C546.70904@digsys.bg> <20111012172912.GA27013@icarus.home.lan> Date: Wed, 12 Oct 2011 10:43:23 -0700 X-Google-Sender-Auth: CbaEozusSzwM2zM9bt0bl8nTrsQ Message-ID: From: Artem Belevich To: Jeremy Chadwick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: AF (4096 byte sector) drives: Can you mix/match in a ZFS pool? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2011 17:43:24 -0000 On Wed, Oct 12, 2011 at 10:29 AM, Jeremy Chadwick wrote: > How does ZFS determine this? =A0I was under the impression that this > behaviour was determined by (or "assisted by") ashift. > > Surely ZFS cannot ask the underlying storage provider (e.g. GEOM on > FreeBSD) what logical vs. physical sector size to use (e.g. for SATA > what's returned in the ATA IDENTIFY payload), because on SSDs such as > Intel SSDs *both* of those sizes are reported as 512 bytes (camcontrol > identify confirms). In r222520 mav@ added ADA_Q_4K quirks for bunch of Hitachi, Seagate and WD drives so that geom_disk will be aware of 4K sectors at least for some disks. I'm not sure whether ZFS picks it up, though. --Artem