Hi Ravi,

It was disabled because 6 months ago when it was introduced there were some bug reports, and people preferred to stay away rather than debug it. Since then Linux support was added with respective testing and fixing. Several bugs found during FreeBSD testing were addressed, and all the tests are passing clean now. In upstream OpenZFS this feature was never actually disabled, and the release of OpenZFS 2.2.0 including it should be officially tagged nearest days. So we feel it is time for another try. At least until any other issues are reported, there is no reason for it to stay disabled.

On 10.10.2023 22:44, Ravi Pokala wrote:
Hi Martin,

The commit message says "what", not "why".

Why was block cloning disabled by default before, and why is it being enabled 
now?

Thanks,

Ravi (rpokala@)

-----Original Message-----
From: <[email protected] <mailto:[email protected]>> on 
behalf of Martin Matuska <[email protected] <mailto:[email protected]>>
Date: Wednesday, October 11, 2023 at 04:17
To: <[email protected] <mailto:[email protected]>>, 
<[email protected] <mailto:[email protected]>>, 
<[email protected] <mailto:[email protected]>>
Subject: git: 26103ccba8b7 - main - zfs: enable block cloning by default


The branch main has been updated by mm:


URL: https://cgit.FreeBSD.org/src/commit/?id=26103ccba8b75038bd83773268524ac814bfa334 
<https://cgit.FreeBSD.org/src/commit/?id=26103ccba8b75038bd83773268524ac814bfa334>


commit 26103ccba8b75038bd83773268524ac814bfa334
Author: Martin Matuska <[email protected] <mailto:[email protected]>>
AuthorDate: 2023-10-10 22:43:35 +0000
Commit: Martin Matuska <[email protected] <mailto:[email protected]>>
CommitDate: 2023-10-10 22:43:35 +0000


zfs: enable block cloning by default


Discussed with: markj
Reviewed by: mav
Tested by: mm (FreeBSD test suite + OpenZFS test suite)
MFC after: 2 months
Differential Revision: https://reviews.freebsd.org/D41991 
<https://reviews.freebsd.org/D41991>
---
sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c 
b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
index 8969fd6a54bd..09e18de81748 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vfsops.c
@@ -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;
+int zfs_bclone_enabled = 1;
SYSCTL_INT(_vfs_zfs, OID_AUTO, bclone_enabled, CTLFLAG_RWTUN,
&zfs_bclone_enabled, 0, "Enable block cloning");







--
Alexander Motin

Reply via email to