]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - configure.ac
allow linking against libblkid instead of libdisk
authorChristoph Hellwig <hch@lst.de>
Sat, 10 Oct 2009 21:05:32 +0000 (17:05 -0400)
committerhch@lst.de <Christoph Hellwig>
Sat, 10 Oct 2009 21:05:32 +0000 (17:05 -0400)
commite4da994184266c7f89da03a86a3f52dde478137b
tree2ec08facd7ee63885a0dbfaa5748aab9bf9033f3
parent595e27dbd7360e81fa9e74d992098fe44fd7aed5
allow linking against libblkid instead of libdisk

Add a new --enable-blkid switch to use libblkid from util-linux to detect
the device geometry and check for existing partitions or filesystem on a
device.  Note that this requires the latest blkid from util-linux-ng git
for the topology calls, odler ones won't work.  If I had a little more
autoconf fu we might be able to detect a too early one, but right now it
just fails if it's too old and --enable-blkid is specified.  We also
stop building libdisk in the blkid case as it's an internal static library
not otherwise used.

For the actual checks I tried to stay as close as possible to the old
code, so we still don't check topology for external log devices.  I hope
to add this at a later stage.

As a small addition we also print a warning if trying to create a filesystem
on a partition that is not properly aligned.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Makefile
configure.in
include/builddefs.in
mkfs/Makefile
mkfs/xfs_mkfs.c