Skip to content

Commit 45cbf0f

Browse files
classabbyampzdykstra
authored andcommitted
zfsbootmenu-core: disable zfs_dmu_offset_next_sync for R/W pools
this currently appears to mostly or fully mitigate the silent corruption bug that was originally thought to be caused by block cloning. Keeping bclone disabled for now as it is a common avenue for triggering the bug, despite not being the root cause. see openzfs/zfs#15526
1 parent d566a1d commit 45cbf0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zfsbootmenu/lib/zfsbootmenu-core.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,11 @@ set_rw_pool() {
14381438
echo 0 > /sys/module/zfs/parameters/zfs_bclone_enabled
14391439
fi
14401440

1441+
if [ -w /sys/module/zfs/parameters/zfs_dmu_offset_next_sync ] ; then
1442+
zdebug "disabling zfs_dmu_offset_next_sync on writeable pools"
1443+
echo 0 > /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
1444+
fi
1445+
14411446
# If force_export is set, skip evaluating if the pool is already read-write
14421447
# shellcheck disable=SC2154
14431448
[ -n "${force_export}" ] || ! is_writable "${pool}" || return 0

0 commit comments

Comments
 (0)