Re: [PATCH, RFC] mke2fs: get device topology values from blkid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sep 18, 2009  02:13 -0400, Martin K. Petersen wrote:
> >>>>> "Eric" == Eric Sandeen <sandeen@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux