mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
tests: nonspecific cleanup
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -100,12 +100,8 @@ else
|
||||
binary_props+=('zoned')
|
||||
fi
|
||||
|
||||
if is_linux; then
|
||||
# Only older kernels support non-blocking mandatory locks
|
||||
if [[ $(linux_version) -lt $(linux_version "4.4") ]]; then
|
||||
binary_props+=('nbmand')
|
||||
fi
|
||||
else
|
||||
# Newer Linuxes dropped non-blocking mandatory locks
|
||||
if ! is_linux || [ $(linux_version) -lt $(linux_version "4.4") ]; then
|
||||
binary_props+=('nbmand')
|
||||
fi
|
||||
|
||||
@@ -114,7 +110,6 @@ function toggle_prop
|
||||
typeset ds=$1
|
||||
typeset prop=$2
|
||||
|
||||
datasetexists $ds || log_fail "$ds does not exist"
|
||||
typeset val=$(get_prop $prop $ds)
|
||||
typeset newval='off'
|
||||
|
||||
@@ -137,7 +132,6 @@ function randomize_ds_props
|
||||
typeset ds=$1
|
||||
typeset prop proplist val
|
||||
|
||||
datasetexists $ds || log_fail "$ds does not exist"
|
||||
if ds_is_volume $ds; then
|
||||
toggle_prop $ds readonly
|
||||
proplist="${vol_props[@]}"
|
||||
|
||||
Reference in New Issue
Block a user