Skip to content

Commit ddfe050

Browse files
committed
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 Signed-off-by: Toomas Soome <[email protected]>
1 parent 808e681 commit ddfe050

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_all_mountpoints.ksh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ function cleanup_all
109109
export __ZFS_POOL_RESTRICT="$TESTPOOL"
110110
log_must zfs $unmountall
111111
unset __ZFS_POOL_RESTRICT
112+
# make sure we leave $TESTPOOL mounted
113+
log_must zfs mount $TESTPOOL
112114

113115
for fs in ${filesystems[@]}; do
114116
cleanup_filesystem "$TESTPOOL" "$fs"

0 commit comments

Comments
 (0)