mirror_zfs/lib
Alan Somers fd95af8dd4
Speed up "zpool import" in the presence of many zvols
By default, FreeBSD does not allow zpools to be backed by zvols (that
can be changed with the "vfs.zfs.vol.recursive" sysctl). When that
sysctl is set to 0, the kernel does not attempt to read zvols when
looking for vdevs. But the zpool command still does. This change brings
the zpool command into line with the kernel's behavior. It speeds "zpool
import" when an already imported pool has many zvols, or a zvol with
many snapshots.

https://svnweb.freebsd.org/base?view=revision&revision=357235
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241083
https://reviews.freebsd.org/D22077

Obtained from: FreeBSD
Reported by: Martin Birgmeier <d8zNeCFG@aon.at>
Sponsored by: Axcient
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Alan Somers <asomers@gmail.com>
Closes #11502
2021-01-24 16:02:45 -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 FreeBSD: fix HEAD build, conditionally remove FDSYNC defines 2021-01-23 15:39:55 -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 Only add supported features during pool creation 2021-01-22 09:47:06 -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 Speed up "zpool import" in the presence of many zvols 2021-01-24 16:02:45 -08:00
Makefile.am Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00