Skip to content

Commit

Permalink
ZTS: Fix zpool_reopen_[1-5] on Fedora 35
Browse files Browse the repository at this point in the history
The zpool_reopen_[1-5] tests are failing Fedora 35 with:

zpool_reopen_001_pos.ksh[64]: log_must[67]: log_pos[270]:
wait_for_resilver_end[98]: wait_for_action: line 71: func: is read only

Renaming 'func' -> 'funct' fixes the issue.

Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes openzfs#12871
  • Loading branch information
tonyhutter authored and nicman23 committed Aug 22, 2022
1 parent c8680ea commit a0f621b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ function wait_for_action #pool timeout function
{
typeset pool=$1
typeset -i timeout=$2
typeset func=$3
typeset funct=$3

while [ $timeout -gt 0 ]; do
(( --timeout ))
if ( $func $pool ); then
if ( $funct $pool ); then
return 0
fi
sleep 1
Expand Down

0 comments on commit a0f621b

Please sign in to comment.