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