Merge commit '720b16875295d57e0e6a4e0ec32db4d47412f896'
[unleashed.git] / kernel / fs / zfs / sys / dsl_bookmark.h
blob3591986d7bd7b01618b40c8377303dc5be8dbb07
1 /*
2 * CDDL HEADER START
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
13 * CDDL HEADER END
16 * Copyright (c) 2013 by Delphix. All rights reserved.
19 #ifndef _SYS_DSL_BOOKMARK_H
20 #define _SYS_DSL_BOOKMARK_H
22 #include <sys/zfs_context.h>
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 struct dsl_pool;
29 struct dsl_dataset;
32 * On disk zap object.
34 typedef struct zfs_bookmark_phys {
35 uint64_t zbm_guid; /* guid of bookmarked dataset */
36 uint64_t zbm_creation_txg; /* birth transaction group */
37 uint64_t zbm_creation_time; /* bookmark creation time */
38 } zfs_bookmark_phys_t;
40 int dsl_bookmark_create(nvlist_t *, nvlist_t *);
41 int dsl_get_bookmarks(const char *, nvlist_t *, nvlist_t *);
42 int dsl_get_bookmarks_impl(dsl_dataset_t *, nvlist_t *, nvlist_t *);
43 int dsl_bookmark_destroy(nvlist_t *, nvlist_t *);
44 int dsl_bookmark_lookup(struct dsl_pool *, const char *,
45 struct dsl_dataset *, zfs_bookmark_phys_t *);
47 #ifdef __cplusplus
49 #endif
51 #endif /* _SYS_DSL_BOOKMARK_H */