mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	ZTS: Fix zpool_reopen_[1-5] on Fedora 35
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 <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #12871
This commit is contained in:
		
							parent
							
								
									f471a0a0a7
								
							
						
					
					
						commit
						29e05d5345
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user