zfs/cmd
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
..
arc_summary arc_summary3: Handle overflowing value width 2020-12-23 14:34:59 -08:00
arcstat FreeBSD: Update usage of py-sysctl 2020-12-23 14:34:59 -08:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:11:01 -08:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs Re-apply path sanitizer, as mount(8) still mangles it 2021-01-23 15:47:06 -08:00
raidz_test Unconditionally enable debugging for libzpool 2020-07-10 15:30:31 -07:00
vdev_id vdev_id: Add error message when $CONFIG is missing 2021-01-24 16:06:58 -08:00
zdb Memory leak in zdb:import_checkpointed_state() 2021-01-05 10:32:46 -08:00
zed FreeBSD: notify userspace when a vdev is removed 2020-12-23 13:08:12 -08:00
zfs Fix report_mount_progress never calling set_progress_header 2021-03-05 12:49:22 -08:00
zfs_ids_to_path Use the correct return type for getopt 2020-12-23 14:34:59 -08:00
zgenhostid Install zgenhostid to sbindir 2021-01-23 15:47:06 -08:00
zhack nvlist leaked in zpool_find_config() 2021-01-05 10:31:47 -08:00
zinject Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
zpool zpool import cachefile improvements 2021-06-23 13:22:14 -07:00
zstream Suppress cppcheck invalidSyntax warninigs 2021-03-08 09:07:25 -08:00
zstreamdump Minor `zstream redup` command fixes 2020-04-10 21:10:09 -07:00
ztest Support uClibc for the tests compilations 2021-03-05 12:48:50 -08:00
zvol_id Replace ZFS on Linux references with OpenZFS 2020-10-16 13:01:24 -07:00
zvol_wait zvol_wait should ignore redacted zvols 2019-11-06 10:51:19 -08:00
Makefile.am Small program that converts a dataset id and an object id to a path 2020-05-20 10:05:33 -07:00