Reviewed by: Matt Ahrens <m...@delphix.com> Reviewed by: George Wilson <george.wil...@delphix.com>
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. Upstream bug: DLPX-49205 You can view, comment on, or merge this pull request online at: https://github.com/openzfs/openzfs/pull/579 -- Commit Summary -- * 9235 rename zpool_rewind_policy_t to zpool_load_policy_t -- File Changes -- M usr/src/cmd/zdb/zdb.c (6) M usr/src/cmd/zpool/zpool_main.c (11) M usr/src/common/zfs/zfs_comutil.c (40) M usr/src/common/zfs/zfs_comutil.h (4) M usr/src/lib/libzfs/common/libzfs.h (2) M usr/src/lib/libzfs/common/libzfs_import.c (4) M usr/src/lib/libzfs/common/libzfs_pool.c (22) M usr/src/uts/common/fs/zfs/spa.c (54) M usr/src/uts/common/sys/fs/zfs.h (26) -- Patch Links -- https://github.com/openzfs/openzfs/pull/579.patch https://github.com/openzfs/openzfs/pull/579.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/openzfs/openzfs/pull/579 ------------------------------------------ openzfs: openzfs-developer Permalink: https://openzfs.topicbox.com/groups/developer/discussions/Te7912ffef158d33a-M7662f61ffa31d82892cc33c3 Delivery options: https://openzfs.topicbox.com/groups