]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/ztest/ztest.c
OpenZFS 7253 - ztest failure: dsl_destroy_head(name) == 0 (0x10 == 0x0), file .....
[mirror_zfs.git] / cmd / ztest / ztest.c
index 8d5ee0bad3449635f9d0004df7fc856c05346781..3b504e7913f57266da87d605bd2888fca654422e 100644 (file)
@@ -3499,9 +3499,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);
 }