summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorTurbo Fredriksson <[email protected]>2013-12-17 21:53:52 +0000
committerBrian Behlendorf <[email protected]>2013-12-18 16:46:35 -0800
commitfd8febbd1e6ff3d3eec6b9d395ab65400769da19 (patch)
tree387a3ae2617b47c25cf0b562a103b23849b87ea2 /module
parent4788a01dbd11b8fd22e0ff95a197a753778e04ca (diff)
Add zfs_send_corrupt_data module option
Tuning setting to ignore read/checksum errors when sending data. Signed-off-by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1982 Issue #1897
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dmu_send.c5
1 files changed, 5 insertions, 0 deletions
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