mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Illumos #3829
3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl Reviewed by: Matt Amdur <matt.amdur@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net> References: https://www.illumos.org/issues/3829 illumos/illumos-gate@bb6e70758d Ported-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1775
This commit is contained in:
committed by
Brian Behlendorf
parent
34ffbed88c
commit
1a077756e8
@@ -129,9 +129,6 @@ dsl_destroy_snapshot_check(void *arg, dmu_tx_t *tx)
|
||||
if (pair != NULL)
|
||||
return (fnvpair_value_int32(pair));
|
||||
|
||||
if (nvlist_empty(dsda->dsda_successful_snaps))
|
||||
return (SET_ERROR(ENOENT));
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
@@ -127,10 +127,6 @@ dsl_dataset_user_hold_check(void *arg, dmu_tx_t *tx)
|
||||
}
|
||||
}
|
||||
|
||||
/* Return ENOENT if no holds would be created. */
|
||||
if (nvlist_empty(dduha->dduha_chkholds))
|
||||
return (SET_ERROR(ENOENT));
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
@@ -472,10 +468,6 @@ dsl_dataset_user_release_check(void *arg, dmu_tx_t *tx)
|
||||
}
|
||||
}
|
||||
|
||||
/* Return ENOENT if none of the holds existed. */
|
||||
if (nvlist_empty(ddura->ddura_chkholds))
|
||||
return (SET_ERROR(ENOENT));
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user