diff options
author | Pavel Zakharov <[email protected]> | 2017-02-10 17:51:09 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-06-04 14:54:20 -0700 |
commit | 8a393be353c3bfffbfbe0f4d2bc57210b658dcde (patch) | |
tree | 11a6990472970d151bed08414b7d86feb173777b /include/zfs_comutil.h | |
parent | 85912983a4ff12eab20b170c15eb26f7761b8be2 (diff) |
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 <[email protected]>
Reviewed by: Matt Ahrens <[email protected]>
Reviewed by: George Wilson <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
Ported-by: Brian Behlendorf <[email protected]>
OpenZFS-issue: https://illumos.org/issues/9235
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/d2b1e44
Closes #7532
Diffstat (limited to 'include/zfs_comutil.h')
-rw-r--r-- | include/zfs_comutil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zfs_comutil.h b/include/zfs_comutil.h index f89054388..8cc098ada 100644 --- a/include/zfs_comutil.h +++ b/include/zfs_comutil.h @@ -20,7 +20,7 @@ */ /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2012 by Delphix. All rights reserved. + * Copyright (c) 2012, 2017 by Delphix. All rights reserved. */ #ifndef _ZFS_COMUTIL_H @@ -34,7 +34,7 @@ extern "C" { #endif extern boolean_t zfs_allocatable_devs(nvlist_t *); -extern void zpool_get_rewind_policy(nvlist_t *, zpool_rewind_policy_t *); +extern void zpool_get_load_policy(nvlist_t *, zpool_load_policy_t *); extern int zfs_zpl_version_map(int spa_version); extern int zfs_spa_version_map(int zpl_version); |