On Sun, Mar 15, 2015 at 6:55 PM, Brandon Vincent
On Sun, Mar 15, 2015 at 1:09 PM, Chris Murphy
wrote: That's awesome, I love it when I'm wrong. But I'll bet dollars to donuts that mkfs will automatically use a 4096 byte block size when physical sector size is 4096 bytes due to this commit from 2010: http://git.whamcloud.com/gitweb?p=tools/e2fsprogs.git;a=commitdiff_plain;h=9...
That git commit deals with overriding the defaults in e2fsprogs for debugging purposes by setting an environment variable. For block devices under 512 MiB, the default ext2/3/4 block size is still set at 1 KiB.
I got the wrong commit, it's this one from e2fsprogs 1.41.12 "When mke2fs is ratcheting down the blocksize for small filesystems, or when a blocksize is specified on the commandline, we should not willingly go below the physical sector size of the device." http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/?id=bb1158b92ed8a12a... Also, the release notes for e2fsprogs 1.41.10 (February 10, 2010) says it will warn at mkfs time if there's misalignment. http://git.kernel.org/cgit/fs/ext2/e2fsprogs.git/commit/?id=ecced2c3586fed83... -- Chris Murphy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org