From owner-freebsd-stable@FreeBSD.ORG Fri Oct 10 02:06:54 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74EE0957 for ; Fri, 10 Oct 2014 02:06:54 +0000 (UTC) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by mx1.freebsd.org (Postfix) with ESMTP id 29278D8E for ; Fri, 10 Oct 2014 02:06:53 +0000 (UTC) Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3jDXhr6cd2zDQ for ; Fri, 10 Oct 2014 04:06:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= content-transfer-encoding:content-type:content-type:subject :subject:mime-version:user-agent:organization:from:from:date :date:message-id:received:received:received; s=jakla4; t= 1412906808; x=1415498809; bh=5FglQZWAR3lkTrTQBnGq1c+S7tlegWwv1nN vq1uEXRA=; b=KjfFVjugYqO8PgUgxj3sVAA/GWPsu9+518eFVDCd3VX53LgeIIB c8YnGgqtPnvMWtPiCsJRHLz6I0Ks9wiaWNQLmu+qWtDpKWDI4DXq0F5pr3EeqBmY kxuBbGpMlPRkWs+KO9epWjDQiMXRFaotmKUUfy8vVliJj42At5zyilvI= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10012) with ESMTP id uXwbWiyWT4BT for ; Fri, 10 Oct 2014 04:06:48 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP for ; Fri, 10 Oct 2014 04:06:48 +0200 (CEST) Received: from sleepy.ijs.si (msleepy-1-pt.tunnel.tserv27.prg1.ipv6.he.net [IPv6:2001:470:6e:18e::2]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mildred.ijs.si (Postfix) with ESMTPSA id 3jDXhm08VTzBv for ; Fri, 10 Oct 2014 04:06:47 +0200 (CEST) Message-ID: <54373F37.9030304@ijs.si> Date: Fri, 10 Oct 2014 04:06:47 +0200 From: Mark Martinec Organization: J. Stefan Institute User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: GPT partitions not 4k aligned by 10.1-RC1 installer Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 02:06:54 -0000 Today I did a quick install of a 10.1-RC1 from an installation ISO DVD. Apart from choosing a ZFS filesystem, other options were left to their default. In particular, the align-to-4k ZFS options was left enabled. Guess what, the ZFS really ended up with ashift 12, but neither the swap nor the zfs partition is 4k aligned: # gpart show /dev/ada0 => 34 625142381 ada0 GPT (298G) 34 1024 1 freebsd-boot (512K) 1058 8388608 2 freebsd-swap (4.0G) 8389666 616752749 3 freebsd-zfs (294G) I find this unacceptable and surprising, regardless of what the underlying media is. Now that even Windows is aligning partitions to 1 MiB, and SSD erase block is often cited as 1 MiB ... Worried about space waste of half of one JPG photo? Mark