Re: BTRFS partition usage...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <jengelh@...>, <chris.mason@...>, <linux-kernel@...>, <linux-fsdevel@...>, <btrfs-devel@...>
Date: Tuesday, February 12, 2008 - 8:45 pm

On Tue, Feb 12, 2008 at 03:28:26PM -0800, David Miller wrote:

The reason why we don't put the superblock at 0 is not because it
screws over the sparc, but because on many systems (including x86) the
bootsector is stored at 0.  It's not hard for mke2fs to zap the boot
sector which we do on all architectures *except* sparc, to avoid
nuking the disk label.  (Chris just missed the "#ifndef __sparc //
#define ZAP_BOOTBLOCK // #endif" at the beginning of mke2fs.c)

This is the best of all words; it makes sparc happy; it allows boot
loaders to put the x86 standard initial stage 0 boot loader in the
first 446 bytes of the disk; and by zapping sector 0 on all
architectures except the sparc, it solves the previous filesystem
"ghost traces" detection problem for filesystems like xfs that put the
superblock at 0.

						- Ted
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Wed Feb 6, 1:00 pm)
BTRFS only works with PAGE_SIZE &lt;= 4K, David Miller, (Tue Feb 12, 5:55 pm)
Re: BTRFS only works with PAGE_SIZE &lt;= 4K, Chris Mason, (Tue Feb 12, 6:03 pm)
CRC32C big endian bugs..., David Miller, (Tue Feb 12, 5:23 am)
BTRFS partition usage..., David Miller, (Tue Feb 12, 3:21 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:11 am)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 9:49 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 4:50 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 10:00 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:28 pm)
Re: BTRFS partition usage..., Theodore Tso, (Tue Feb 12, 8:45 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:26 pm)
Re: BTRFS partition usage..., Bryan Henderson, (Tue Feb 12, 9:25 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 7:39 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 9:08 pm)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 10:08 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:33 pm)
Re: BTRFS partition usage..., Jeff Garzik, (Tue Feb 12, 10:10 pm)
Re: BTRFS partition usage..., Szabolcs Szakacsits, (Wed Feb 13, 8:51 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 10:21 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:34 pm)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 10:35 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:35 pm)
Re: BTRFS partition usage..., Christoph Hellwig, (Wed Feb 13, 3:02 am)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 11:04 am)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 7:38 pm)
Re: BTRFS partition usage..., Jan Engelhardt, (Tue Feb 12, 7:42 pm)
Re: BTRFS partition usage..., Rene Herman, (Tue Feb 12, 9:22 pm)
Re: BTRFS partition usage..., David Miller, (Tue Feb 12, 9:09 pm)
Re: BTRFS partition usage..., Chris Mason, (Tue Feb 12, 12:17 pm)
Re: [ANNOUNCE] Btrfs v0.12 released, David Miller, (Sun Feb 10, 9:12 pm)
Re: [ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Mon Feb 11, 9:42 am)
Re: [ANNOUNCE] Btrfs v0.12 released, David Miller, (Tue Feb 12, 2:43 am)
Re: [ANNOUNCE] Btrfs v0.12 released, Chris Mason, (Tue Feb 12, 9:43 am)