aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dsl_bookmark.c
diff options
context:
space:
mode:
authorChristian Schwarz <[email protected]>2020-01-16 02:15:05 +0100
committerBrian Behlendorf <[email protected]>2020-02-11 13:19:17 -0800
commit948f0c44196d2fa254399ec0d716c2ba0bb9ffad (patch)
tree87307e1d30a2f0601f64bb75603aedeb70f73b54 /module/zfs/dsl_bookmark.c
parenta73f361fdb2c0a7778e70b482e316054fc2d8630 (diff)
zcp: add zfs.sync.bookmark
Add support for bookmark creation and cloning. Reviewed-by: Matt Ahrens <[email protected]> Reviewed-by: Paul Dagnelie <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Christian Schwarz <[email protected]> Closes #9571
Diffstat (limited to 'module/zfs/dsl_bookmark.c')
-rw-r--r--module/zfs/dsl_bookmark.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/module/zfs/dsl_bookmark.c b/module/zfs/dsl_bookmark.c
index 5a73c5300..45ba4b557 100644
--- a/module/zfs/dsl_bookmark.c
+++ b/module/zfs/dsl_bookmark.c
@@ -205,20 +205,6 @@ dsl_bookmark_create_nvl_validate(nvlist_t *bmarks)
return (0);
}
-typedef struct dsl_bookmark_create_redacted_arg {
- const char *dbcra_bmark;
- const char *dbcra_snap;
- redaction_list_t **dbcra_rl;
- uint64_t dbcra_numsnaps;
- uint64_t *dbcra_snaps;
- void *dbcra_tag;
-} dsl_bookmark_create_redacted_arg_t;
-
-typedef struct dsl_bookmark_create_arg {
- nvlist_t *dbca_bmarks;
- nvlist_t *dbca_errors;
-} dsl_bookmark_create_arg_t;
-
/*
* expects that newbm and source have been validated using
* dsl_bookmark_create_nvl_validate_pair
@@ -301,7 +287,7 @@ eholdnewbmds:
return (error);
}
-static int
+int
dsl_bookmark_create_check(void *arg, dmu_tx_t *tx)
{
dsl_bookmark_create_arg_t *dbca = arg;