Skip to content

Commit

Permalink
Add zfs_send_corrupt_data module option
Browse files Browse the repository at this point in the history
Tuning setting to ignore read/checksum errors when sending data.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1982
Issue #1897
  • Loading branch information
FransUrbo authored and behlendorf committed Dec 19, 2013
1 parent 4788a01 commit fd8febb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions man/man5/zfs-module-parameters.5
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions module/zfs/dmu_send.c
Expand Up @@ -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

0 comments on commit fd8febb

Please sign in to comment.