]> granicus.if.org Git - zfs/commit
ztest: ENOSPC in ztest_objset_destroy_cb()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Dec 2018 18:03:05 +0000 (10:03 -0800)
committerGitHub <noreply@github.com>
Fri, 14 Dec 2018 18:03:05 +0000 (10:03 -0800)
commit0dd6b6bfcb2c14249a6d6b874e11ff137777d349
tree29d5bc2208b35c0a4b0a309e3e0843d3a04e83c7
parent98d07d5798390bbe3817418db51afa895831e900
ztest: ENOSPC in ztest_objset_destroy_cb()

While unlikely it is possible for dsl_destroy_head() to return
ENOSPC in the ztest_objset_destroy_cb().  This can occur even
when ZFS_SPACE_CHECK_DESTROY is used with the dsl_sync_task().
Both the existence of a checkpoint and pending deferred frees
can cause this.

Reviewed-by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8206
cmd/ztest/ztest.c