xref: /illumos-gate/usr/src/uts/common/fs/zfs/sys/dmu_send.h (revision 8119dad84d6416f13557b0ba8e2aaf9064cbcfd3)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24  * Copyright (c) 2012, 2014 by Delphix. All rights reserved.
25  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
26  * Copyright (c) 2013, Joyent, Inc. All rights reserved.
27  * Copyright (c) 2014 Integros [integros.com]
28  */
29 
30 #ifndef _DMU_SEND_H
31 #define	_DMU_SEND_H
32 
33 #include <sys/inttypes.h>
34 #include <sys/spa.h>
35 
36 struct vnode;
37 struct dsl_dataset;
38 struct drr_begin;
39 struct avl_tree;
40 struct dmu_replay_record;
41 
42 int dmu_send(const char *tosnap, const char *fromsnap, boolean_t embedok,
43     boolean_t large_block_ok, boolean_t compressok, boolean_t rawok, int outfd,
44     uint64_t resumeobj, uint64_t resumeoff, struct vnode *vp, offset_t *off);
45 int dmu_send_estimate(struct dsl_dataset *ds, struct dsl_dataset *fromds,
46     boolean_t stream_compressed, uint64_t *sizep);
47 int dmu_send_estimate_from_txg(struct dsl_dataset *ds, uint64_t fromtxg,
48     boolean_t stream_compressed, uint64_t *sizep);
49 int dmu_send_obj(const char *pool, uint64_t tosnap, uint64_t fromsnap,
50     boolean_t embedok, boolean_t large_block_ok, boolean_t compressok,
51     boolean_t rawok, int outfd, struct vnode *vp, offset_t *off);
52 
53 #endif /* _DMU_SEND_H */
54