From 04434775b7f3aa55fbbcf2064cfb9f5f5c436e64 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Fri, 24 Aug 2012 07:12:46 -0700 Subject: Illumos #3100: zvol rename fails with EBUSY when dirty. illumos/illumos-gate@2e2c135528b3edfe9aaf67d1f004dc0202fa1a54 Illumos changeset: 13780:6da32a929222 3100 zvol rename fails with EBUSY when dirty Reviewed by: Christopher Siden Reviewed by: Adam H. Leventhal Reviewed by: George Wilson Reviewed by: Garrett D'Amore Approved by: Eric Schrock Ported-by: Etienne Dechamps Signed-off-by: Brian Behlendorf Closes #995 --- include/sys/dmu_objset.h | 1 - include/sys/dsl_dataset.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sys/dmu_objset.h b/include/sys/dmu_objset.h index c6d202e2e..013b6ec34 100644 --- a/include/sys/dmu_objset.h +++ b/include/sys/dmu_objset.h @@ -161,7 +161,6 @@ timestruc_t dmu_objset_snap_cmtime(objset_t *os); /* called from dsl */ void dmu_objset_sync(objset_t *os, zio_t *zio, dmu_tx_t *tx); boolean_t dmu_objset_is_dirty(objset_t *os, uint64_t txg); -boolean_t dmu_objset_is_dirty_anywhere(objset_t *os); objset_t *dmu_objset_create_impl(spa_t *spa, struct dsl_dataset *ds, blkptr_t *bp, dmu_objset_type_t type, dmu_tx_t *tx); int dmu_objset_open_impl(spa_t *spa, struct dsl_dataset *ds, blkptr_t *bp, diff --git a/include/sys/dsl_dataset.h b/include/sys/dsl_dataset.h index 7cff7e3a0..38ce3c567 100644 --- a/include/sys/dsl_dataset.h +++ b/include/sys/dsl_dataset.h @@ -258,6 +258,7 @@ int dsl_dataset_space_written(dsl_dataset_t *oldsnap, dsl_dataset_t *new, uint64_t *usedp, uint64_t *compp, uint64_t *uncompp); int dsl_dataset_space_wouldfree(dsl_dataset_t *firstsnap, dsl_dataset_t *last, uint64_t *usedp, uint64_t *compp, uint64_t *uncompp); +boolean_t dsl_dataset_is_dirty(dsl_dataset_t *ds); int dsl_dsobj_to_dsname(char *pname, uint64_t obj, char *buf); -- cgit v1.2.3