aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2024-10-08 20:41:17 -0700
committerBrian Behlendorf <[email protected]>2024-10-09 13:44:58 -0700
commit09f6b2ebe3cd744f37b7fa5170cc0f7444dbf8d8 (patch)
treed18c6a86bf8eecc4653c9db1af53a1830ed4fca8 /lib
parent2609d93b65cd3a1fb8207a489ea40b4e19f1b082 (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #16627
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_pool.c b/lib/libzfs/libzfs_pool.c
index 14410b153..44f2c6f19 100644
--- a/lib/libzfs/libzfs_pool.c
+++ b/lib/libzfs/libzfs_pool.c
@@ -2796,7 +2796,7 @@ zpool_scan(zpool_handle_t *zhp, pool_scan_func_t func, pool_scrub_cmd_t cmd)
}
/*
- * With EBUSY, five cases are possible:
+ * With EBUSY, six cases are possible:
*
* Current state Requested
* 1. Normal Scrub Running Normal Scrub or Error Scrub