From 19580676295b4e271da63dce145bb17c3731d069 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Mon, 29 Jul 2013 10:55:16 -0800 Subject: Illumos #3888 3888 zfs recv -F should destroy any snapshots created since the incremental source Reviewed by: George Wilson Reviewed by: Adam Leventhal Reviewed by: Peng Dai Approved by: Richard Lowe References: https://www.illumos.org/issues/3888 illumos/illumos-gate@34f2f8cf94052481c81be2e134b94a00b501bf21 Porting notes: 1. Commit 1fde1e37208c2f56c72c70a06676676f04b65998 wrapped a declaration in dsl_dataset_modified_since_lastsnap in ASSERTV(). The ASSERTV() and local variable have been removed to avoid an unused variable warning. Signed-off-by: Brian Behlendorf Ported-by: Richard Yao Issue #1775 --- module/zfs/dsl_destroy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'module/zfs/dsl_destroy.c') diff --git a/module/zfs/dsl_destroy.c b/module/zfs/dsl_destroy.c index 1c4c3deec..0e741105d 100644 --- a/module/zfs/dsl_destroy.c +++ b/module/zfs/dsl_destroy.c @@ -46,10 +46,7 @@ typedef struct dmu_snapshots_destroy_arg { nvlist_t *dsda_errlist; } dmu_snapshots_destroy_arg_t; -/* - * ds must be owned. - */ -static int +int dsl_destroy_snapshot_check_impl(dsl_dataset_t *ds, boolean_t defer) { if (!dsl_dataset_is_snapshot(ds)) -- cgit v1.2.3