]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: refuse to initialize a misaligned device if not forced using libblkid
authorCarlos Maiolino <cmaiolino@redhat.com>
Tue, 6 Dec 2011 16:45:18 +0000 (14:45 -0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 8 Dec 2011 17:08:52 +0000 (17:08 +0000)
commit66bd6431d0e3b3618c8abacbd6df3fbae74abeec
treec820dfc74db784af1b6b7cc338fffa8208ebc8c2
parent52783fd21b6071093a605f1eaf19872b00058eaf
mkfs: refuse to initialize a misaligned device if not forced using libblkid

This is a new version of a patch to fix the problem about the usage of 4k
sector devices when the device is not properly aligned. It makes mkfs to
refuse to initialize a xfs filesystem if the -f option is not passed at the
command line, and forces a 512b sector size if the user chooses to force
the device initialization.

Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
mkfs/xfs_mkfs.c