diff options
author | Paul Dagnelie <[email protected]> | 2023-09-19 09:02:23 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2023-09-22 16:13:20 -0700 |
commit | 9aa1a2878ea98f707e871833743d074a59ff2115 (patch) | |
tree | 186d6ed99e8bacefdfb46aaca4b0a0ee41010471 /cmd | |
parent | cc75c816c539d22c56aa912d5db19827a16dcbf3 (diff) |
Fix incorrect expected error in ztest
There is an occasional ztest failure that looks like ztest: attach
(/var/tmp/zloop-run/ztest.13a 570425344, draid1-1-0 532152320, 1)
returned 22, expected 95. This is because the value that we return
is EINVAL, but expected_error is set incorrectly.
Change the expected_error value to match both the comment and the
actual error value.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes #15295
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ztest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ztest.c b/cmd/ztest.c index 398c519cf..59c4be225 100644 --- a/cmd/ztest.c +++ b/cmd/ztest.c @@ -3767,7 +3767,7 @@ ztest_vdev_attach_detach(ztest_ds_t *zd, uint64_t id) else if (ashift > oldvd->vdev_top->vdev_ashift) expected_error = EDOM; else if (newvd_is_dspare && pvd != vdev_draid_spare_get_parent(newvd)) - expected_error = ENOTSUP; + expected_error = EINVAL; else expected_error = 0; |