Richard Yao 1db7b9be75 Fix libblkid support
libblkid support is dormant because the autotools check is broken and
liblkid identifies ZFS vdevs as "zfs_member", not "zfs". We fix that
with a few changes:

First, we fix the libblkid autotools check to do a few things:

1. Make a 64MB file, which is the minimum size ZFS permits.
2. Make 4 fake uberblock entries to make libblkid's check succeed.
3. Return 0 upon success to make autotools use the success case.
4. Include stdlib.h to avoid implicit declration of free().
5. Check for "zfs_member", not "zfs"
6. Make --with-blkid disable autotools check (avoids Gentoo sandbox violation)
7. Pass '-lblkid' correctly using LIBS not LDFLAGS.

Second, we change the libblkid support to scan for "zfs_member", not
"zfs".

This makes --with-blkid work on Gentoo.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1751
2013-10-10 16:56:51 -07:00
..
2010-08-31 13:41:27 -07:00
2013-04-24 16:18:53 -07:00
2011-04-19 10:10:47 -07:00
2012-10-14 13:06:48 -07:00
2013-08-15 16:19:07 -07:00
2013-03-18 15:33:17 -07:00
2013-04-02 10:48:26 -07:00
2013-03-18 15:33:17 -07:00
2010-08-31 13:41:27 -07:00
2010-08-31 13:41:27 -07:00
2013-10-10 16:56:51 -07:00
2010-08-31 13:41:27 -07:00
2011-01-28 12:45:19 -08:00
2010-08-31 13:41:27 -07:00
2013-03-06 15:46:41 -08:00
2013-04-24 16:18:55 -07:00
2013-04-24 16:18:49 -07:00