Skip to content

Commit

Permalink
zfs-2.2.1: Disable block cloning by default
Browse files Browse the repository at this point in the history
Disable block cloning by default to mitigate possible data corruption
(see openzfs#15529 and openzfs#15526).

Signed-off-by: Tony Hutter <hutter2@llnl.gov>
  • Loading branch information
tonyhutter authored and Frederick888 committed Nov 23, 2023
1 parent 392c98d commit 767a9ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/os/freebsd/zfs/zfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int zfs_debug_level;
SYSCTL_INT(_vfs_zfs, OID_AUTO, debug, CTLFLAG_RWTUN, &zfs_debug_level, 0,
"Debug level");

int zfs_bclone_enabled = 1;
int zfs_bclone_enabled = 0;
SYSCTL_INT(_vfs_zfs, OID_AUTO, bclone_enabled, CTLFLAG_RWTUN,
&zfs_bclone_enabled, 0, "Enable block cloning");

Expand Down
2 changes: 1 addition & 1 deletion module/os/linux/zfs/zpl_file_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <sys/zfs_vnops.h>
#include <sys/zfeature.h>

int zfs_bclone_enabled = 1;
int zfs_bclone_enabled = 0;

/*
* Clone part of a file via block cloning.
Expand Down

0 comments on commit 767a9ef

Please sign in to comment.