]> granicus.if.org Git - zfs/commit
Fix ztest_vdev_add_remove() test case
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 14 Jun 2018 16:41:27 +0000 (09:41 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Jun 2018 16:41:27 +0000 (09:41 -0700)
commitc91cf36fc23f66efd9de5738b62cf8dec87f15ce
tree37cd0ec081b37644f1cc37d7f12a20aa7edd2635
parent1fac63e56f370f675b23687ee2e634744c54e818
Fix ztest_vdev_add_remove() test case

Commit 2ffd89fc allowed two new errors to be reported by zil_reset()
in order to provide a descriptive error message regarding why a log
device could not be removed.  However, the new return values were
not handled in the ztest_vdev_add_remove() test case resulting in
ztest failures during automated testing.

Reviewed-by: Tim Chase <tim@chase2k.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Paul Zuchowski <pzuchowski@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7630
cmd/ztest/ztest.c