Deleted Added
full compact
dmu.c (254753) dmu.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

--- 8 unchanged lines hidden (view full) ---

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 */
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

--- 8 unchanged lines hidden (view full) ---

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 */
25
26/* Copyright (c) 2013 by Saso Kiselkov. All rights reserved. */
25/* Copyright (c) 2013 by Saso Kiselkov. All rights reserved. */
26/* Copyright (c) 2013, Joyent, Inc. All rights reserved. */
27
28#include <sys/dmu.h>
29#include <sys/dmu_impl.h>
30#include <sys/dmu_tx.h>
31#include <sys/dbuf.h>
32#include <sys/dnode.h>
33#include <sys/zfs_context.h>
34#include <sys/dmu_objset.h>

--- 1570 unchanged lines hidden (view full) ---

1605 /*
1606 * If we're writing preallocated blocks, we aren't actually
1607 * writing them so don't set any policy properties. These
1608 * blocks are currently only used by an external subsystem
1609 * outside of zfs (i.e. dump) and not written by the zio
1610 * pipeline.
1611 */
1612 compress = ZIO_COMPRESS_OFF;
27
28#include <sys/dmu.h>
29#include <sys/dmu_impl.h>
30#include <sys/dmu_tx.h>
31#include <sys/dbuf.h>
32#include <sys/dnode.h>
33#include <sys/zfs_context.h>
34#include <sys/dmu_objset.h>

--- 1570 unchanged lines hidden (view full) ---

1605 /*
1606 * If we're writing preallocated blocks, we aren't actually
1607 * writing them so don't set any policy properties. These
1608 * blocks are currently only used by an external subsystem
1609 * outside of zfs (i.e. dump) and not written by the zio
1610 * pipeline.
1611 */
1612 compress = ZIO_COMPRESS_OFF;
1613 checksum = ZIO_CHECKSUM_OFF;
1613 checksum = ZIO_CHECKSUM_NOPARITY;
1614 } else {
1615 compress = zio_compress_select(dn->dn_compress, compress);
1616
1617 checksum = (dedup_checksum == ZIO_CHECKSUM_OFF) ?
1618 zio_checksum_select(dn->dn_checksum, checksum) :
1619 dedup_checksum;
1620
1621 /*

--- 221 unchanged lines hidden ---
1614 } else {
1615 compress = zio_compress_select(dn->dn_compress, compress);
1616
1617 checksum = (dedup_checksum == ZIO_CHECKSUM_OFF) ?
1618 zio_checksum_select(dn->dn_checksum, checksum) :
1619 dedup_checksum;
1620
1621 /*

--- 221 unchanged lines hidden ---