Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762875AbYBLOKE (ORCPT ); Tue, 12 Feb 2008 09:10:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760014AbYBLOJv (ORCPT ); Tue, 12 Feb 2008 09:09:51 -0500 Received: from agminet01.oracle.com ([141.146.126.228]:18068 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759772AbYBLOJu (ORCPT ); Tue, 12 Feb 2008 09:09:50 -0500 From: Chris Mason To: Jan Engelhardt Subject: Re: BTRFS partition usage... Date: Tue, 12 Feb 2008 09:08:59 -0500 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: David Miller , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, btrfs-devel@oss.oracle.com References: <200802061200.14690.chris.mason@oracle.com> <200802120849.34477.chris.mason@oracle.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802120908.59602.chris.mason@oracle.com> X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1587 Lines: 35 On Tuesday 12 February 2008, Jan Engelhardt wrote: > On Feb 12 2008 08:49, Chris Mason wrote: > >> > This is a real issue on sparc where the default sun disk labels > >> > created use an initial partition where block zero aliases the disk > >> > label. It took me a few iterations before I figured out why every > >> > btrfs make would zero out my disk label :-/ > >> > >> Actually it seems this is only a problem with mkfs.btrfs, it clears > >> out the first 64 4K chunks of the disk for whatever reason. > > > >It is a good idea to remove supers from other filesystems. I also need to > > add zeroing at the end of the device as well. > > > >Looks like I misread the e2fs zeroing code. It zeros the whole external > > log device, and I assumed it also zero'd out the start of the main FS. > > > >So, if Btrfs starts zeroing at 1k, will that be acceptable for you? > > Something looks wrong here. Why would btrfs need to zero at all? > Superblock at 0, and done. Just like xfs. > (Yes, I had xfs on sparc before, so it's not like you NEED the > whitespace at the start of a partition.) I've had requests to move the super down to 64k to make room for bootloaders, which may not matter for sparc, but I don't really plan on different locations for different arches. 4k aligned is important given that sector sizes are growing. -chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/