mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
Add bookmark v2 on-disk feature
This patch adds the bookmark v2 feature to the on-disk format. This feature will be needed for the upcoming redacted sends and for an upcoming fix that for raw receives. The feature is not currently used by any code and thus this change is a no-op, aside from the fact that the user can now enable the feature. Reviewed-by: Paul Dagnelie <pcd@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Ahrens <mahrens@delphix.com> Signed-off-by: Tom Caputi <tcaputi@datto.com> Issue #8308
This commit is contained in:
committed by
Brian Behlendorf
parent
369aa501d1
commit
579ce7c5ae
@@ -36,8 +36,25 @@ typedef struct zfs_bookmark_phys {
|
||||
uint64_t zbm_guid; /* guid of bookmarked dataset */
|
||||
uint64_t zbm_creation_txg; /* birth transaction group */
|
||||
uint64_t zbm_creation_time; /* bookmark creation time */
|
||||
|
||||
/* the following fields are reserved for redacted send / recv */
|
||||
uint64_t zbm_redaction_obj; /* redaction list object */
|
||||
uint64_t zbm_flags; /* ZBM_FLAG_* */
|
||||
uint64_t zbm_referenced_bytes_refd;
|
||||
uint64_t zbm_compressed_bytes_refd;
|
||||
uint64_t zbm_uncompressed_bytes_refd;
|
||||
uint64_t zbm_referenced_freed_before_next_snap;
|
||||
uint64_t zbm_compressed_freed_before_next_snap;
|
||||
uint64_t zbm_uncompressed_freed_before_next_snap;
|
||||
|
||||
/* fields used for raw sends */
|
||||
uint64_t zbm_ivset_guid;
|
||||
} zfs_bookmark_phys_t;
|
||||
|
||||
|
||||
#define BOOKMARK_PHYS_SIZE_V1 (3 * sizeof (uint64_t))
|
||||
#define BOOKMARK_PHYS_SIZE_V2 (12 * sizeof (uint64_t))
|
||||
|
||||
int dsl_bookmark_create(nvlist_t *, nvlist_t *);
|
||||
int dsl_get_bookmarks(const char *, nvlist_t *, nvlist_t *);
|
||||
int dsl_get_bookmarks_impl(dsl_dataset_t *, nvlist_t *, nvlist_t *);
|
||||
|
||||
@@ -66,6 +66,7 @@ typedef enum spa_feature {
|
||||
SPA_FEATURE_SPACEMAP_V2,
|
||||
SPA_FEATURE_ALLOCATION_CLASSES,
|
||||
SPA_FEATURE_RESILVER_DEFER,
|
||||
SPA_FEATURE_BOOKMARK_V2,
|
||||
SPA_FEATURES
|
||||
} spa_feature_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user