mirror_zfs/lib/libzfs
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
..
libzfs_changelist.c Recreate minors when renaming zvols 2012-11-19 16:59:44 -08:00
libzfs_config.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_dataset.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_diff.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_fru.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_graph.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_import.c Fix libblkid support 2013-10-10 16:56:51 -07:00
libzfs_iter.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_mount.c No point in rewind() mtab in zfs_unshare_proto(). We're not really 2013-08-15 10:18:31 -07:00
libzfs_pool.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_sendrecv.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_status.c Illumos #2762: zpool command should have better support for feature flags 2013-01-08 10:35:43 -08:00
libzfs_util.c Illumos #2882, #2883, #2900 2013-09-04 15:49:00 -07:00
Makefile.am Illumos #2882, #2883, #2900 2013-09-04 15:49:00 -07:00