equal
deleted
inserted
replaced
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
23 * Use is subject to license terms. |
|
24 */ |
23 */ |
25 |
24 |
26 #ifndef _SYS_ZIO_CHECKSUM_H |
25 #ifndef _SYS_ZIO_CHECKSUM_H |
27 #define _SYS_ZIO_CHECKSUM_H |
26 #define _SYS_ZIO_CHECKSUM_H |
28 |
27 |
29 #include <sys/zio.h> |
28 #include <sys/zio.h> |
30 #include <zfs_fletcher.h> |
|
31 |
29 |
32 #ifdef __cplusplus |
30 #ifdef __cplusplus |
33 extern "C" { |
31 extern "C" { |
34 #endif |
32 #endif |
35 |
33 |
66 extern zio_checksum_t zio_checksum_SHA256; |
64 extern zio_checksum_t zio_checksum_SHA256; |
67 |
65 |
68 extern void zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, |
66 extern void zio_checksum_compute(zio_t *zio, enum zio_checksum checksum, |
69 void *data, uint64_t size); |
67 void *data, uint64_t size); |
70 extern int zio_checksum_error(zio_t *zio, zio_bad_cksum_t *out); |
68 extern int zio_checksum_error(zio_t *zio, zio_bad_cksum_t *out); |
|
69 extern enum zio_checksum spa_dedup_checksum(spa_t *spa); |
71 |
70 |
72 #ifdef __cplusplus |
71 #ifdef __cplusplus |
73 } |
72 } |
74 #endif |
73 #endif |
75 |
74 |