mirror_zfs/lib
Alan Somers ec40ce8405 libzutil: don't read extraneous data in zpool_read_label
zpool_read_label doesn't need the full labels including uberblocks.  It
only needs the vdev_phys_t.  This reduces by half the amount of data
read to check for a label, speeding up "zpool import", "zpool
labelclear", etc.

Originally committed as
https://cgit.freebsd.org/src/commit/?id=63f8025d6acab1b334373ddd33f940a69b3b54cc

Obtained from: FreeBSD
Sponsored by: Spectra Logic Corp, Axcient
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alek Pinchuk <apinchuk@axcient.com>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #11467
2021-01-21 11:18:32 -08:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi pool may become suspended during device expansion 2020-09-17 20:03:10 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libshare zpool command complains about /etc/exports.d 2020-09-25 13:09:40 -07:00
libspl Extending FreeBSD UIO Struct 2021-01-20 21:27:30 -08:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libzfs libzfs_sendrecv: Use fnv* to verify nvlist/nvpair* 2021-01-14 09:53:09 -08:00
libzfs_core Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-22 15:16:42 -08:00
libzpool Linux 5.10 compat: use iov_iter in uio structure 2020-12-18 08:48:26 -08:00
libzstd Avoid symbol collision with in-kernel zstdlib 2020-08-24 12:20:41 -07:00
libzutil libzutil: don't read extraneous data in zpool_read_label 2021-01-21 11:18:32 -08:00
Makefile.am Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00