22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2011 by Delphix. All rights reserved. |
23 * Copyright (c) 2011 by Delphix. All rights reserved. |
24 */ |
24 */ |
25 /* |
25 /* |
26 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
26 * Copyright 2011 Nexenta Systems, Inc. All rights reserved. |
|
27 * Copyright (c) 2012, Joyent, Inc. All rights reserved. |
27 */ |
28 */ |
28 |
29 |
29 /* Portions Copyright 2010 Robert Milkowski */ |
30 /* Portions Copyright 2010 Robert Milkowski */ |
30 |
31 |
31 #ifndef _SYS_DMU_H |
32 #ifndef _SYS_DMU_H |
702 typedef void (*dmu_traverse_cb_t)(objset_t *os, void *arg, struct blkptr *bp, |
703 typedef void (*dmu_traverse_cb_t)(objset_t *os, void *arg, struct blkptr *bp, |
703 uint64_t object, uint64_t offset, int len); |
704 uint64_t object, uint64_t offset, int len); |
704 void dmu_traverse_objset(objset_t *os, uint64_t txg_start, |
705 void dmu_traverse_objset(objset_t *os, uint64_t txg_start, |
705 dmu_traverse_cb_t cb, void *arg); |
706 dmu_traverse_cb_t cb, void *arg); |
706 |
707 |
707 int dmu_sendbackup(objset_t *tosnap, objset_t *fromsnap, boolean_t fromorigin, |
708 int dmu_send(objset_t *tosnap, objset_t *fromsnap, boolean_t fromorigin, |
708 struct vnode *vp, offset_t *off); |
709 int outfd, struct vnode *vp, offset_t *off); |
709 int dmu_send_estimate(objset_t *tosnap, objset_t *fromsnap, boolean_t fromorign, |
710 int dmu_send_estimate(objset_t *tosnap, objset_t *fromsnap, boolean_t fromorign, |
710 uint64_t *sizep); |
711 uint64_t *sizep); |
711 |
712 |
712 typedef struct dmu_recv_cookie { |
713 typedef struct dmu_recv_cookie { |
713 /* |
714 /* |