HomeFreeBSD

ztest: update ztest_dmu_snapshot_create_destroy()

Description

ztest: update ztest_dmu_snapshot_create_destroy()

ECHRNG is returned when the channel program encounters a runtime
error. For example, this can happen when a snapshot doesn't exist.
We handle this error the same way as the existing EEXIST and ENOENT
error checks.

Additionally, improve the internal debug message to include the
error describing why a pool couldn't be opened.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14351

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 5 2023, 12:05 AM
Parents
rG549aafb7c809: ztest: ztest_dsl_prop_set_uint64() ENOSPC consistency
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0c8fbe5b6adc: ztest: update ztest_dmu_snapshot_create_destroy() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 10 2023, 9:27 PM