Print this page
4185 New hash algorithm support
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/common/zfs/zfs_fletcher.h
+++ new/usr/src/common/zfs/zfs_fletcher.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 24 */
25 +/*
26 + * Copyright 2013 Saso Kiselkov. All rights reserved.
27 + */
25 28
26 29 #ifndef _ZFS_FLETCHER_H
27 30 #define _ZFS_FLETCHER_H
28 31
29 32 #include <sys/types.h>
30 33 #include <sys/spa.h>
31 34
32 35 #ifdef __cplusplus
33 36 extern "C" {
34 37 #endif
35 38
36 39 /*
37 40 * fletcher checksum functions
38 41 */
39 42
40 -void fletcher_2_native(const void *, uint64_t, zio_cksum_t *);
41 -void fletcher_2_byteswap(const void *, uint64_t, zio_cksum_t *);
42 -void fletcher_4_native(const void *, uint64_t, zio_cksum_t *);
43 -void fletcher_4_byteswap(const void *, uint64_t, zio_cksum_t *);
43 +void fletcher_2_native(const void *, uint64_t, const zio_cksum_salt_t *,
44 + const void *, zio_cksum_t *);
45 +void fletcher_2_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
46 + const void *, zio_cksum_t *);
47 +void fletcher_4_native(const void *, uint64_t, const zio_cksum_salt_t *,
48 + const void *, zio_cksum_t *);
49 +void fletcher_4_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
50 + const void *, zio_cksum_t *);
44 51 void fletcher_4_incremental_native(const void *, uint64_t,
45 52 zio_cksum_t *);
46 53 void fletcher_4_incremental_byteswap(const void *, uint64_t,
47 54 zio_cksum_t *);
48 55
49 56 #ifdef __cplusplus
50 57 }
51 58 #endif
52 59
53 60 #endif /* _ZFS_FLETCHER_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX