xref: /freebsd/sys/contrib/openzfs/include/sys/blkptr.h (revision 61145dc2b94f12f6a47344fb9aac702321880e43)
1 // SPDX-License-Identifier: CDDL-1.0
2 /*
3  * CDDL HEADER START
4  *
5  * This file and its contents are supplied under the terms of the
6  * Common Development and Distribution License ("CDDL"), version 1.0.
7  * You may only use this file in accordance with the terms of version
8  * 1.0 of the CDDL.
9  *
10  * A full copy of the text of the CDDL should have accompanied this
11  * source.  A copy of the CDDL is also available via the Internet at
12  * http://www.illumos.org/license/CDDL.
13  *
14  * CDDL HEADER END
15  */
16 
17 /*
18  * Copyright (c) 2013 by Delphix. All rights reserved.
19  */
20 
21 #ifndef _SYS_BLKPTR_H
22 #define	_SYS_BLKPTR_H
23 
24 #include <sys/spa.h>
25 #include <sys/zio.h>
26 
27 #ifdef	__cplusplus
28 extern "C" {
29 #endif
30 
31 void encode_embedded_bp_compressed(blkptr_t *, void *,
32     enum zio_compress, int, int);
33 void decode_embedded_bp_compressed(const blkptr_t *, void *);
34 int decode_embedded_bp(const blkptr_t *, void *, int);
35 
36 #ifdef	__cplusplus
37 }
38 #endif
39 
40 #endif	/* _SYS_BLKPTR_H */
41