mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-12 19:20:28 +03:00
OpenZFS 7253 - ztest failure: dsl_destroy_head(name) == 0 (0x10 == 0x0), file ../ztest.c, line 3235 (#5660)
Authored by: Chris Williamson <chris.williamson@delphix.com> Reviewed by: - Matthew Ahrens <mahrens@delphix.com> Reviewed by: - Paul Dagnelie <pcd@delphix.com> Approved by: - Robert Mustacchi <rm@joyent.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Ported-by: George Melikov <mail@gmelikov.ru> OpenZFS-issue: https://www.illumos.org/issues/7253 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/754998c Closes #5660
This commit is contained in:
parent
546d32ca10
commit
dc1fbc43be
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user