Skip to content

Commit 479dca5

Browse files
committed
zfs-2.2.1: Disable block cloning by default
Disable block cloning by default to mitigate possible data corruption (see #15529 and #15526). Signed-off-by: Tony Hutter <[email protected]>
1 parent 87e9e82 commit 479dca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module/os/freebsd/zfs/zfs_vfsops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ int zfs_debug_level;
8989
SYSCTL_INT(_vfs_zfs, OID_AUTO, debug, CTLFLAG_RWTUN, &zfs_debug_level, 0,
9090
"Debug level");
9191

92-
int zfs_bclone_enabled = 1;
92+
int zfs_bclone_enabled = 0;
9393
SYSCTL_INT(_vfs_zfs, OID_AUTO, bclone_enabled, CTLFLAG_RWTUN,
9494
&zfs_bclone_enabled, 0, "Enable block cloning");
9595

module/os/linux/zfs/zpl_file_range.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <sys/zfs_vnops.h>
3232
#include <sys/zfeature.h>
3333

34-
int zfs_bclone_enabled = 1;
34+
int zfs_bclone_enabled = 0;
3535

3636
/*
3737
* Clone part of a file via block cloning.

0 commit comments

Comments
 (0)