dsl_destroy.h revision 3b2aab18808792cbd248a12f1edf139b89833c13
911106dfb16696472af8c1b7b4c554a829354fa8jm/*
911106dfb16696472af8c1b7b4c554a829354fa8jm * CDDL HEADER START
911106dfb16696472af8c1b7b4c554a829354fa8jm *
911106dfb16696472af8c1b7b4c554a829354fa8jm * The contents of this file are subject to the terms of the
911106dfb16696472af8c1b7b4c554a829354fa8jm * Common Development and Distribution License (the "License").
911106dfb16696472af8c1b7b4c554a829354fa8jm * You may not use this file except in compliance with the License.
911106dfb16696472af8c1b7b4c554a829354fa8jm *
911106dfb16696472af8c1b7b4c554a829354fa8jm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911106dfb16696472af8c1b7b4c554a829354fa8jm * or http://www.opensolaris.org/os/licensing.
911106dfb16696472af8c1b7b4c554a829354fa8jm * See the License for the specific language governing permissions
911106dfb16696472af8c1b7b4c554a829354fa8jm * and limitations under the License.
911106dfb16696472af8c1b7b4c554a829354fa8jm *
911106dfb16696472af8c1b7b4c554a829354fa8jm * When distributing Covered Code, include this CDDL HEADER in each
911106dfb16696472af8c1b7b4c554a829354fa8jm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
911106dfb16696472af8c1b7b4c554a829354fa8jm * If applicable, add the following below this CDDL HEADER, with the
911106dfb16696472af8c1b7b4c554a829354fa8jm * fields enclosed by brackets "[]" replaced with your own identifying
911106dfb16696472af8c1b7b4c554a829354fa8jm * information: Portions Copyright [yyyy] [name of copyright owner]
911106dfb16696472af8c1b7b4c554a829354fa8jm *
911106dfb16696472af8c1b7b4c554a829354fa8jm * CDDL HEADER END
911106dfb16696472af8c1b7b4c554a829354fa8jm */
911106dfb16696472af8c1b7b4c554a829354fa8jm/*
911106dfb16696472af8c1b7b4c554a829354fa8jm * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
53c110294d8b1410cabc201a52f94b03ae2ef448jm * Copyright (c) 2012 by Delphix. All rights reserved.
911106dfb16696472af8c1b7b4c554a829354fa8jm * Copyright (c) 2012, Joyent, Inc. All rights reserved.
911106dfb16696472af8c1b7b4c554a829354fa8jm */
911106dfb16696472af8c1b7b4c554a829354fa8jm
911106dfb16696472af8c1b7b4c554a829354fa8jm#ifndef _SYS_DSL_DESTROY_H
911106dfb16696472af8c1b7b4c554a829354fa8jm#define _SYS_DSL_DESTROY_H
bfc848c632c9eacb2a640246d96e198f1b185c03jm
911106dfb16696472af8c1b7b4c554a829354fa8jm#ifdef __cplusplus
bfc848c632c9eacb2a640246d96e198f1b185c03jmextern "C" {
911106dfb16696472af8c1b7b4c554a829354fa8jm#endif
911106dfb16696472af8c1b7b4c554a829354fa8jm
911106dfb16696472af8c1b7b4c554a829354fa8jmstruct nvlist;
911106dfb16696472af8c1b7b4c554a829354fa8jmstruct dsl_dataset;
911106dfb16696472af8c1b7b4c554a829354fa8jmstruct dmu_tx;
bfc848c632c9eacb2a640246d96e198f1b185c03jm
bfc848c632c9eacb2a640246d96e198f1b185c03jmint dsl_destroy_snapshots_nvl(struct nvlist *snaps, boolean_t defer,
bfc848c632c9eacb2a640246d96e198f1b185c03jm struct nvlist *errlist);
bfc848c632c9eacb2a640246d96e198f1b185c03jmint dsl_destroy_snapshot(const char *name, boolean_t defer);
911106dfb16696472af8c1b7b4c554a829354fa8jmint dsl_destroy_head(const char *name);
bfc848c632c9eacb2a640246d96e198f1b185c03jmint dsl_destroy_head_check_impl(struct dsl_dataset *ds, int expected_holds);
bfc848c632c9eacb2a640246d96e198f1b185c03jmvoid dsl_destroy_head_sync_impl(struct dsl_dataset *ds, struct dmu_tx *tx);
bfc848c632c9eacb2a640246d96e198f1b185c03jmint dsl_destroy_inconsistent(const char *dsname, void *arg);
bfc848c632c9eacb2a640246d96e198f1b185c03jmvoid dsl_destroy_snapshot_sync_impl(struct dsl_dataset *ds,
bfc848c632c9eacb2a640246d96e198f1b185c03jm boolean_t defer, struct dmu_tx *tx);
911106dfb16696472af8c1b7b4c554a829354fa8jm
911106dfb16696472af8c1b7b4c554a829354fa8jm#ifdef __cplusplus
bfc848c632c9eacb2a640246d96e198f1b185c03jm}
911106dfb16696472af8c1b7b4c554a829354fa8jm#endif
bfc848c632c9eacb2a640246d96e198f1b185c03jm
bfc848c632c9eacb2a640246d96e198f1b185c03jm#endif /* _SYS_DSL_DESTROY_H */
bfc848c632c9eacb2a640246d96e198f1b185c03jm