From owner-freebsd-current@FreeBSD.ORG Mon Dec 5 19:37:42 2011 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 61468106566B for ; Mon, 5 Dec 2011 19:37:42 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE9A8FC18 for ; Mon, 5 Dec 2011 19:37:41 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id D10D25C34; Mon, 5 Dec 2011 19:37:40 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.5/8.14.5) with ESMTP id pB5JbedE058007; Mon, 5 Dec 2011 19:37:40 GMT (envelope-from phk@phk.freebsd.dk) To: Maxim Khitrov From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 05 Dec 2011 14:30:05 EST." Content-Type: text/plain; charset=ISO-8859-1 Date: Mon, 05 Dec 2011 19:37:40 +0000 Message-ID: <58006.1323113860@critter.freebsd.dk> Cc: Mark Martinec , freebsd-current@freebsd.org Subject: Re: bsdinstall guided partitioning should 4k-align swap and ufs partitions 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: Mon, 05 Dec 2011 19:37:42 -0000 In message , Maxim Khitrov writes: >How do you get around the hardware claiming to use 512-byte sectors >when it actually uses 4 kB internally? Did you read what I wrote ? ] If the disk-driver has a 4k drive, or suspects it has a 4k drive ( ] these properties are advisory only), it should announce that with ] the stripe* properties on its GEOM provider. notice "suspects" ? It would be entirely reasonable for the driver to suspect all drives larger than some N GB to be 4k drives. But the information has to flow up from the driver, so that intermediate GEOM classes can adjust the two stripe-properties according to what they do. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.