ztest: Fix scrub check in ztest_raidz_expand_check()
commit4319e714022ace9e74659c15be0af3cd2f22d31a
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Oct 2024 03:41:17 +0000 (8 20:41 -0700)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 03:41:17 +0000 (8 20:41 -0700)
tree0c3e99b1e513e1928a5ad54d66a154bcdf60d699
parentcefef28e9895fae01e294c0e8075b8bf98037acd
ztest: Fix scrub check in ztest_raidz_expand_check()

The scrub code may return EBUSY under several possible scenarios
causing ztest to incorrectly ASSERT when verifying the result of
a raidz expansion.  Update the test case to allow EBUSY since it
does not indicate pool damage.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #16627
cmd/ztest.c
lib/libzfs/libzfs_pool.c