mirror_zfs/cmd
Brian Behlendorf c1f3de18a4
ztest: Fix spa_open() ENOENT failures
The pool may not be imported when the previous pass is terminated.
In which case, spa_open() will return ENOENT to indicate the pool
is not currently imported.  Refactor to code slightly to handle
this case by importing the pool and then retrying the spa_open().

The ztest_import() function was moved before ztest_run() and the
import logic split in to a small internal helper function.  The
ztest_freeze() function was also moved but no changes were made.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10407
2020-06-06 12:51:35 -07:00
..
arc_summary arc_summary: Make get_descriptions per platform 2020-02-27 17:15:06 -08:00
arcstat Fix outdated comment header 2020-05-11 16:23:16 -07:00
dbufstat Detect if sed supports --in-place 2019-10-16 19:19:48 -07:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs mount: use the mount syscall directly 2020-05-20 18:02:41 -07:00
raidz_test Fixed LDADD library links in Makefiles for cross compilation builds 2020-05-09 10:17:08 -07:00
vdev_id Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
zdb Improvements on persistent L2ARC 2020-05-07 16:34:03 -07:00
zed Fixed LDADD library links in Makefiles for cross compilation builds 2020-05-09 10:17:08 -07:00
zfs Revert "Let zfs mount all tolerate in-progress mounts" 2020-05-26 16:07:50 -07:00
zfs_ids_to_path Small program that converts a dataset id and an object id to a path 2020-05-20 10:05:33 -07:00
zgenhostid bash scripts: use /usr/bin/env for bash shebangs 2020-02-10 13:13:46 -08:00
zhack Add zfs_file_* interface, remove vnodes 2019-11-21 09:32:57 -08:00
zinject Fixed LDADD library links in Makefiles for cross compilation builds 2020-05-09 10:17:08 -07:00
zpool Fix gcc 10.1 stringop-truncation error 2020-05-19 14:24:10 -07:00
zstream Fixed LDADD library links in Makefiles for cross compilation builds 2020-05-09 10:17:08 -07:00
zstreamdump Minor zstream redup command fixes 2020-04-10 21:10:09 -07:00
ztest ztest: Fix spa_open() ENOENT failures 2020-06-06 12:51:35 -07:00
zvol_id OpenZFS restructuring - libspl 2019-10-02 10:39:48 -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