Skip to content

Commit 4c95a47

Browse files
Ryan Moellerjsai20
authored andcommitted
ZTS: Use swapctl to list swap devices on FreeBSD
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes openzfs#11503
1 parent 312ca4e commit 4c95a47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/zfs-tests/tests/functional/zvol/zvol_swap/zvol_swap.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#
3636
if is_linux; then
3737
SAVESWAPDEVS=$(swapon -s | nawk '(NR != 1) {print $1}')
38+
elif is_freebsd; then
39+
SAVESWAPDEVS=$(swapctl -l | nawk '(NR != 1) {print $1}')
3840
else
3941
SAVESWAPDEVS=$(swap -l | nawk '(NR != 1) {print $1}')
4042
fi

0 commit comments

Comments
 (0)