[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <20090918141811.GT2537@webber.adilger.int>
Date: Fri, 18 Sep 2009 08:18:11 -0600
From: Andreas Dilger <adilger@....com>
To: "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: Eric Sandeen <sandeen@...hat.com>,
ext4 development <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH, RFC] mke2fs: get device topology values from blkid
On Sep 18, 2009 02:13 -0400, Martin K. Petersen wrote:
> >>>>> "Eric" == Eric Sandeen <sandeen@...hat.com> writes:
> Eric> This is just a rough cut, due to the blkid header selection issues
> Eric> I mentioned earlier on the list. It'll also need some config-fu
> Eric> to be sure we've got a blkid which has these calls, but with it in
> Eric> place, we'll finally have automatic selection of stride/stripe:
>
> What about alignment?
As yet we don't handle wacky alignment. For Lustre customers we tell them
not to create partition tables, but it would be nice to handle all of the
strange alignment issues internally.
> I know that in our friendly DM universe the volume will be aligned. But
> what if the user does mkfs on /dev/sdX and the drive isn't naturally
> aligned?
>
> How flexible is the extN on-disk format? Can you pad and shift things
> if need be?
Not in sub-block offsets, which means that partition tables and drive
geometry, etc. should at least align on multiples of the blocksize,
and ideally multiples of the "minimum" IO size.
The mballoc allocator CAN handle non-power-of-two allocations, if the
geometry tells it the minimum/optimum IO size needs it, but as yet it
doesn't have an "offset" parameter. It just assumes that block 0 is
aligned properly. I suspect it wouldn't be hard to add this, though
to make it efficient it would require munging the buddy bitmaps.
> Also, are you guys affected by the previously-acked-sectors-are-now-gone
> problems with 512-byte logical/4KB physical drives?
Not that I'm aware of. The ext4 journal commit block is below 512 bytes,
and virtually all ext4 filesystems are using 4kB blocks.
Maybe that was XFS?
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists