zio_checksum.c (249195) | zio_checksum.c (255750) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2013 by Delphix. All rights reserved. | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 7 unchanged lines hidden (view full) --- 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 23 * Copyright (c) 2013 by Delphix. All rights reserved. |
24 * Copyright (c) 2013, Joyent, Inc. All rights reserved. |
|
24 */ 25 26#include <sys/zfs_context.h> 27#include <sys/spa.h> 28#include <sys/zio.h> 29#include <sys/zio_checksum.h> 30#include <sys/zil.h> 31#include <zfs_fletcher.h> --- 41 unchanged lines hidden (view full) --- 73 {{zio_checksum_off, zio_checksum_off}, 0, 0, 0, "off"}, 74 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 1, 0, "label"}, 75 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 1, 0, "gang_header"}, 76 {{fletcher_2_native, fletcher_2_byteswap}, 0, 1, 0, "zilog"}, 77 {{fletcher_2_native, fletcher_2_byteswap}, 0, 0, 0, "fletcher2"}, 78 {{fletcher_4_native, fletcher_4_byteswap}, 1, 0, 0, "fletcher4"}, 79 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 0, 1, "sha256"}, 80 {{fletcher_4_native, fletcher_4_byteswap}, 0, 1, 0, "zilog2"}, | 25 */ 26 27#include <sys/zfs_context.h> 28#include <sys/spa.h> 29#include <sys/zio.h> 30#include <sys/zio_checksum.h> 31#include <sys/zil.h> 32#include <zfs_fletcher.h> --- 41 unchanged lines hidden (view full) --- 74 {{zio_checksum_off, zio_checksum_off}, 0, 0, 0, "off"}, 75 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 1, 0, "label"}, 76 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 1, 0, "gang_header"}, 77 {{fletcher_2_native, fletcher_2_byteswap}, 0, 1, 0, "zilog"}, 78 {{fletcher_2_native, fletcher_2_byteswap}, 0, 0, 0, "fletcher2"}, 79 {{fletcher_4_native, fletcher_4_byteswap}, 1, 0, 0, "fletcher4"}, 80 {{zio_checksum_SHA256, zio_checksum_SHA256}, 1, 0, 1, "sha256"}, 81 {{fletcher_4_native, fletcher_4_byteswap}, 0, 1, 0, "zilog2"}, |
82 {{zio_checksum_off, zio_checksum_off}, 0, 0, 0, "noparity"}, |
|
81}; 82 83enum zio_checksum 84zio_checksum_select(enum zio_checksum child, enum zio_checksum parent) 85{ 86 ASSERT(child < ZIO_CHECKSUM_FUNCTIONS); 87 ASSERT(parent < ZIO_CHECKSUM_FUNCTIONS); 88 ASSERT(parent != ZIO_CHECKSUM_INHERIT && parent != ZIO_CHECKSUM_ON); --- 187 unchanged lines hidden --- | 83}; 84 85enum zio_checksum 86zio_checksum_select(enum zio_checksum child, enum zio_checksum parent) 87{ 88 ASSERT(child < ZIO_CHECKSUM_FUNCTIONS); 89 ASSERT(parent < ZIO_CHECKSUM_FUNCTIONS); 90 ASSERT(parent != ZIO_CHECKSUM_INHERIT && parent != ZIO_CHECKSUM_ON); --- 187 unchanged lines hidden --- |