[zfs-2.2.3] Enable zfs_bclone_enabled on cp_files tests

cp_files_002_pos uses BRT, so enable block cloning in setup/cleanup.
This is only something we need to do in zfs-2.2.3, since 2.2.x ships
with block cloning disabled by default.

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
This commit is contained in:
Tony Hutter 2024-02-12 13:06:09 -08:00
parent d22bf6a9bd
commit b699dacb4a
2 changed files with 10 additions and 0 deletions

View File

@ -32,3 +32,7 @@
. $STF_SUITE/include/libtest.shlib
default_cleanup
if tunable_exists BCLONE_ENABLED ; then
log_must restore_tunable BCLONE_ENABLED
fi

View File

@ -32,4 +32,10 @@
. $STF_SUITE/include/libtest.shlib
DISK=${DISKS%% *}
if tunable_exists BCLONE_ENABLED ; then
log_must save_tunable BCLONE_ENABLED
log_must set_tunable32 BCLONE_ENABLED 1
fi
default_setup $DISK