HomeFreeBSD

ztest: Fix ASSERT in ztest_objset_destroy_cb()

Description

ztest: Fix ASSERT in ztest_objset_destroy_cb()

The dsl_destroy_snapshot() call in ztest_objset_destroy_cb() may
encounter a runtime error when the pool is out of space. This is
similar to the error handling for the dsl_destroy_head() case,
but since dsl_destroy_snapshot() is implemented as a channel
program ECHRNG is returned instead of ENOSPC. ECHRNG may also
be returned instead of EBUSY if there is a hold on the snapshot.

Reviewed by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13155

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 26 2022, 7:20 PM
GitHub <noreply@github.com>Committed on Feb 26 2022, 7:20 PM
Parents
rG4f453dcc1f06: Fix FreeBSD reporting on reruns
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGce91f973ec7c: ztest: Fix ASSERT in ztest_objset_destroy_cb() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 26 2022, 7:20 PM