zfs/lib
George Wilson 455ea5bb1f zpool import cachefile improvements
Importing a pool using the cachefile is ideal to reduce the time
required to import a pool. However, if the devices associated with
a pool in the cachefile have changed, then the import would fail.
This can easily be corrected by doing a normal import which would
then read the pool configuration from the labels.

The goal of this change is make importing using a cachefile more
resilient and auto-correcting. This is accomplished by having
the cachefile import logic automatically fallback to reading the
labels of the devices similar to a normal import. The main difference
between the fallback logic and a normal import is that the cachefile
import logic will only look at the device directories that were
originally used when the cachefile was populated. Additionally,
the fallback logic will always import by guid to ensure that only
the pools in the cachefile would be imported.

External-issue: DLPX-71980
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Wilson <gwilson@delphix.com>
Closes #11716
2021-06-23 13:22:14 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi pool may become suspended during device expansion 2020-09-18 12:38:30 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libshare zpool command complains about /etc/exports.d 2020-10-01 12:20:06 -07:00
libspl FreeBSD: fix HEAD build, conditionally remove FDSYNC defines 2021-01-24 16:05:56 -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 Fix a resource leak in uu_avl_pool_destroy 2021-01-28 11:39:00 -08:00
libzfs Don't bomb out when using keylocation=file:// 2021-03-05 12:59:07 -08:00
libzfs_core Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-24 10:27:14 -08:00
libzpool libzpool: set_global_var: fix endianness handling (fixes zdb -o ) 2021-03-05 12:51:48 -08:00
libzstd Avoid symbol collision with in-kernel zstdlib 2020-08-24 12:20:41 -07:00
libzutil zpool import cachefile improvements 2021-06-23 13:22:14 -07:00
Makefile.am Library ABI tracking with abigail 2020-11-17 20:29:02 +00:00