Skip to content

Commit

Permalink
zfsbootmenu-core: disable block cloning for R/W pools
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Nov 17, 2023
1 parent 1a7fbb8 commit 2c685e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zfsbootmenu/lib/zfsbootmenu-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,11 @@ set_rw_pool() {
fi
zdebug "pool set to ${pool}"

if [ -w /sys/module/zfs/parameters/zfs_bclone_enabled ] ; then
zdebug "disabling block cloning on writeable pools"
echo 0 > /sys/module/zfs/parameters/zfs_bclone_enabled
fi

# If force_export is set, skip evaluating if the pool is already read-write
# shellcheck disable=SC2154
[ -n "${force_export}" ] || ! is_writable "${pool}" || return 0
Expand Down

0 comments on commit 2c685e2

Please sign in to comment.