aboutsummaryrefslogtreecommitdiffstats
path: root/tests/runfiles
diff options
context:
space:
mode:
authorAmeer Hamza <[email protected]>2023-05-04 03:10:32 +0500
committerGitHub <[email protected]>2023-05-03 15:10:32 -0700
commit82ac409acc77935ae366b800ee7cefb14939bbae (patch)
treea9a3b0215d47ce90daaf34abee1fa0c8ed4d1493 /tests/runfiles
parenta46001adb9b143eebf43cd7ca4b508c044f80f00 (diff)
zpool import -m also removing spare and cache when log device is missing
spa_import() relies on a pool config fetched by spa_try_import() for spare/cache devices. Import flags are not passed to spa_tryimport(), which makes it return early due to a missing log device and missing retrieving the cache device and spare eventually. Passing ZFS_IMPORT_MISSING_LOG to spa_tryimport() makes it fetch the correct configuration regardless of the missing log device. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ameer Hamza <[email protected]> Closes #14794
Diffstat (limited to 'tests/runfiles')
-rw-r--r--tests/runfiles/common.run2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runfiles/common.run b/tests/runfiles/common.run
index 3730f2b27..e2137ac59 100644
--- a/tests/runfiles/common.run
+++ b/tests/runfiles/common.run
@@ -422,7 +422,7 @@ tests = ['zpool_import_001_pos', 'zpool_import_002_pos',
'import_cachefile_mirror_detached',
'import_cachefile_paths_changed',
'import_cachefile_shared_device',
- 'import_devices_missing',
+ 'import_devices_missing', 'import_log_missing',
'import_paths_changed',
'import_rewind_config_changed',
'import_rewind_device_replaced']