mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	zfs_mount_all_mountpoints: cleanup_all should leave pool root mounted
if pool root is not mounted, then zpool umount in next test will leave dataset mountpoint directory around and next zfs mount -a will fail with error: cannot mount '/testpool': directory is not empty Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Toomas Soome <tsoome@me.com> Closes #11417
This commit is contained in:
		
							parent
							
								
									59570a05d8
								
							
						
					
					
						commit
						4016ad705b
					
				@ -109,6 +109,8 @@ function cleanup_all
 | 
			
		||||
	export __ZFS_POOL_RESTRICT="$TESTPOOL"
 | 
			
		||||
	log_must zfs $unmountall
 | 
			
		||||
	unset __ZFS_POOL_RESTRICT
 | 
			
		||||
	# make sure we leave $TESTPOOL mounted
 | 
			
		||||
	log_must zfs mount $TESTPOOL
 | 
			
		||||
 | 
			
		||||
	for fs in ${filesystems[@]}; do
 | 
			
		||||
		cleanup_filesystem "$TESTPOOL" "$fs"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user