Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZTS: Apply zfs_bclone_enabled to bclone tests #15796

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/zfs-tests/tests/functional/bclone/cleanup.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@

log_must zfs destroy $TESTSRCFS
log_must zfs destroy $TESTDSTFS
default_cleanup

default_cleanup_noexit

if tunable_exists BCLONE_ENABLED ; then
log_must restore_tunable BCLONE_ENABLED
fi

log_pass
5 changes: 5 additions & 0 deletions tests/zfs-tests/tests/functional/bclone/setup.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ if ! command -v clonefile > /dev/null ; then
log_unsupported "clonefile program required to test block cloning"
fi

if tunable_exists BCLONE_ENABLED ; then
log_must save_tunable BCLONE_ENABLED
log_must set_tunable32 BCLONE_ENABLED 1
fi

DISK=${DISKS%% *}

default_setup_noexit $DISK "true"
Expand Down
Loading