From 89ca8869b04cc08e74905f766ae7e602a994937b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 10 Sep 2017 16:41:47 +0200 Subject: [PATCH 198/325] zfs: Allow to set zfs_send_set_freerecords_bit at runtime Obtained from: ElectroBSD --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c index fef98f4bdc63..47bb3f6428b5 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c @@ -74,12 +74,12 @@ int zfs_recv_queue_length = 16 * 1024 * 1024; int zfs_send_set_freerecords_bit = B_TRUE; #ifdef _KERNEL -TUNABLE_INT("vfs.zfs.send_set_freerecords_bit", &zfs_send_set_freerecords_bit); - SYSCTL_DECL(_vfs_zfs); SYSCTL_INT(_vfs_zfs, OID_AUTO, send_corrupt_data, CTLFLAG_RWTUN, &zfs_send_corrupt_data, 0, "Allow to send datasets with corrupt blocks. " "Blocks filled with 0x'zfs badd bloc' are send as replacement blocks."); +SYSCTL_INT(_vfs_zfs, OID_AUTO, send_set_freerecords_bit, CTLFLAG_RWTUN, + &zfs_send_set_freerecords_bit, 0, "Set the freerecords bits when sending"); #endif static char *dmu_recv_tag = "dmu_recv_tag"; -- 2.32.0