Skip to content

Commit d355c44

Browse files
author
Paul Dagnelie
committed
Brian's feedback
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent d868a78 commit d355c44

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/libzfs/libzfs_pool.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,6 +2761,11 @@ zpool_scan(zpool_handle_t *zhp, pool_scan_func_t func, pool_scrub_cmd_t cmd)
27612761
* 1. we resumed a paused scrub.
27622762
* 2. we resumed a paused error scrub.
27632763
* 3. Error scrub is not run because of no error log.
2764+
*
2765+
* Note that we no longer return ECANCELED in case 1 or 2, but in order
2766+
* to prevent problems where we have a newer userland than kernel, we
2767+
* keep this check in place to prevent erroneous failures when an older
2768+
* kernel returns ECANCLED in those cases.
27642769
*/
27652770
if (err == ECANCELED && (func == POOL_SCAN_SCRUB ||
27662771
func == POOL_SCAN_ERRORSCRUB) && cmd == POOL_SCRUB_NORMAL)

0 commit comments

Comments
 (0)