dmu_diff.c revision be6fd75a69ae679453d9cda5bff3326111e6d1ca
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2013 by Delphix. All rights reserved.
*/
#include <sys/dmu_impl.h>
#include <sys/zfs_context.h>
#include <sys/dmu_objset.h>
#include <sys/dmu_traverse.h>
#include <sys/dsl_dataset.h>
#include <sys/dsl_pool.h>
#include <sys/dsl_synctask.h>
#include <sys/zfs_ioctl.h>
#include <sys/zio_checksum.h>
#include <sys/zfs_znode.h>
struct diffarg {
int da_err; /* error that stopped diff search */
};
static int
{
return (0);
}
}
static int
{
if (write_record(da) != 0)
return (0);
}
return (0);
}
static int
{
if (write_record(da) != 0)
return (0);
}
return (0);
}
/* ARGSUSED */
static int
{
int err = 0;
return (0);
if (err)
return (err);
int i;
for (i = 0; i < blksz >> DNODE_SHIFT; i++) {
(DNODE_BLOCK_SHIFT - DNODE_SHIFT)) + i;
if (err)
break;
}
if (err)
return (err);
/* Don't care about the data blocks */
return (TRAVERSE_VISIT_NO_CHILDREN);
}
return (0);
}
int
{
dsl_pool_t *dp;
int error;
if (error != 0)
return (error);
if (error != 0) {
return (error);
}
if (error != 0) {
return (error);
}
}
if (error != 0) {
} else {
/* we set the da.da_err we return as side-effect */
(void) write_record(&da);
}
}