From fd8febbd1e6ff3d3eec6b9d395ab65400769da19 Mon Sep 17 00:00:00 2001 From: Turbo Fredriksson Date: Tue, 17 Dec 2013 21:53:52 +0000 Subject: [PATCH] Add zfs_send_corrupt_data module option Tuning setting to ignore read/checksum errors when sending data. Signed-off-by: Turbo Fredriksson Signed-off-by: Brian Behlendorf Closes #1982 Issue #1897 --- man/man5/zfs-module-parameters.5 | 11 +++++++++++ module/zfs/dmu_send.c | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/man/man5/zfs-module-parameters.5 b/man/man5/zfs-module-parameters.5 index 00d12b087..d33da62f4 100644 --- a/man/man5/zfs-module-parameters.5 +++ b/man/man5/zfs-module-parameters.5 @@ -873,6 +873,17 @@ Number of ticks to delay scrub Default value: \fB4\fR. .RE +.sp +.ne 2 +.na +\fBzfs_send_corrupt_data\fR (int) +.ad +.RS 12n +Allow to send corrupt data (ignore read/checksum errors when sending data) +.sp +Use \fB1\fR for yes and \fB0\fR for no (default). +.RE + .sp .ne 2 .na diff --git a/module/zfs/dmu_send.c b/module/zfs/dmu_send.c index 7524c2dcf..9264fbb27 100644 --- a/module/zfs/dmu_send.c +++ b/module/zfs/dmu_send.c @@ -1849,3 +1849,8 @@ dmu_objset_is_receiving(objset_t *os) return (os->os_dsl_dataset != NULL && os->os_dsl_dataset->ds_owner == dmu_recv_tag); } + +#if defined(_KERNEL) +module_param(zfs_send_corrupt_data, int, 0644); +MODULE_PARM_DESC(zfs_send_corrupt_data, "Allow sending corrupt data"); +#endif