]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_pool.c
OpenZFS 9235 - rename zpool_rewind_policy_t to zpool_load_policy_t
authorPavel Zakharov <pavel.zakharov@delphix.com>
Fri, 10 Feb 2017 22:51:09 +0000 (17:51 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 4 Jun 2018 21:54:20 +0000 (14:54 -0700)
commit8a393be353c3bfffbfbe0f4d2bc57210b658dcde
tree11a6990472970d151bed08414b7d86feb173777b
parent85912983a4ff12eab20b170c15eb26f7761b8be2
OpenZFS 9235 - rename zpool_rewind_policy_t to zpool_load_policy_t

We want to be able to pass various settings during import/open of a
pool, which are not only related to rewind. Instead of adding a new
policy and duplicate a bunch of code, we should just rename
rewind_policy to a more generic term like load_policy.

For instance, we'd like to set spa->spa_import_flags from the nvlist,
rather from a flags parameter passed to spa_import as in some cases we
want those flags not only for the import case, but also for the open
case. One such flag could be ZFS_IMPORT_MISSING_LOG (as used in zdb)
which would allow zfs to open a pool when logs are missing.

Authored by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed by: Matt Ahrens <matt@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
OpenZFS-issue: https://illumos.org/issues/9235
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/d2b1e44
Closes #7532
cmd/zdb/zdb.c
cmd/zpool/zpool_main.c
include/libzfs.h
include/sys/fs/zfs.h
include/zfs_comutil.h
lib/libzfs/libzfs_import.c
lib/libzfs/libzfs_pool.c
module/zcommon/zfs_comutil.c
module/zfs/spa.c