diff options
| author | Chris Williamson <chris.williamson@delphix.com> | 2016-09-23 20:32:24 -0700 |
|---|---|---|
| committer | Matthew Ahrens <mahrens@delphix.com> | 2016-09-24 10:46:56 -0700 |
| commit | 754998c8d410b7b7ddefbfa4de310a030e0c7ce1 (patch) | |
| tree | 2509637d8abdbb04933855f9280e0b8d5e62489e /usr/src/cmd/ztest | |
| parent | 4220fdc152e5dfec9a1dd51452175295f3684689 (diff) | |
| download | illumos-joyent-754998c8d410b7b7ddefbfa4de310a030e0c7ce1.tar.gz | |
7253 ztest failure: dsl_destroy_head(name) == 0 (0x10 == 0x0), file ../ztest.c, line 3235
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd/ztest')
| -rw-r--r-- | usr/src/cmd/ztest/ztest.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/ztest/ztest.c b/usr/src/cmd/ztest/ztest.c index b4d979ba05..ad38bfa033 100644 --- a/usr/src/cmd/ztest/ztest.c +++ b/usr/src/cmd/ztest/ztest.c @@ -3216,9 +3216,12 @@ ztest_objset_destroy_cb(const char *name, void *arg) * Destroy the dataset. */ if (strchr(name, '@') != NULL) { - VERIFY0(dsl_destroy_snapshot(name, B_FALSE)); + VERIFY0(dsl_destroy_snapshot(name, B_TRUE)); } else { - VERIFY0(dsl_destroy_head(name)); + error = dsl_destroy_head(name); + /* There could be a hold on this dataset */ + if (error != EBUSY) + ASSERT0(error); } return (0); } |
