mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
zio_injection_enabled should not be a module option
The zio_inject.c keeps zio_injection_enabled as a counter of fault handlers, so it should not be exported to user space as a module option. Several EXPORT_SYMBOLs are moved from zio.c to zio_inject.c, where the symbols are defined. Signed-off-by: Isaac Huang <he.huang@intel.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3199
This commit is contained in:
parent
d07b7c7f21
commit
e89bd69775
@ -1413,17 +1413,6 @@ Max zio millisec delay before posting event
|
|||||||
Default value: \fB30,000\fR.
|
Default value: \fB30,000\fR.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.sp
|
|
||||||
.ne 2
|
|
||||||
.na
|
|
||||||
\fBzio_injection_enabled\fR (int)
|
|
||||||
.ad
|
|
||||||
.RS 12n
|
|
||||||
Enable fault injection
|
|
||||||
.sp
|
|
||||||
Use \fB1\fR for yes and \fB0\fR for no (default).
|
|
||||||
.RE
|
|
||||||
|
|
||||||
.sp
|
.sp
|
||||||
.ne 2
|
.ne 2
|
||||||
.na
|
.na
|
||||||
|
@ -3331,14 +3331,6 @@ zbookmark_is_before(const dnode_phys_t *dnp, const zbookmark_phys_t *zb1,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
/* Fault injection */
|
|
||||||
EXPORT_SYMBOL(zio_injection_enabled);
|
|
||||||
EXPORT_SYMBOL(zio_inject_fault);
|
|
||||||
EXPORT_SYMBOL(zio_inject_list_next);
|
|
||||||
EXPORT_SYMBOL(zio_clear_fault);
|
|
||||||
EXPORT_SYMBOL(zio_handle_fault_injection);
|
|
||||||
EXPORT_SYMBOL(zio_handle_device_injection);
|
|
||||||
EXPORT_SYMBOL(zio_handle_label_injection);
|
|
||||||
EXPORT_SYMBOL(zio_type_name);
|
EXPORT_SYMBOL(zio_type_name);
|
||||||
EXPORT_SYMBOL(zio_buf_alloc);
|
EXPORT_SYMBOL(zio_buf_alloc);
|
||||||
EXPORT_SYMBOL(zio_data_buf_alloc);
|
EXPORT_SYMBOL(zio_data_buf_alloc);
|
||||||
|
@ -525,6 +525,11 @@ zio_inject_fini(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_KERNEL) && defined(HAVE_SPL)
|
#if defined(_KERNEL) && defined(HAVE_SPL)
|
||||||
module_param(zio_injection_enabled, int, 0644);
|
EXPORT_SYMBOL(zio_injection_enabled);
|
||||||
MODULE_PARM_DESC(zio_injection_enabled, "Enable fault injection");
|
EXPORT_SYMBOL(zio_inject_fault);
|
||||||
|
EXPORT_SYMBOL(zio_inject_list_next);
|
||||||
|
EXPORT_SYMBOL(zio_clear_fault);
|
||||||
|
EXPORT_SYMBOL(zio_handle_fault_injection);
|
||||||
|
EXPORT_SYMBOL(zio_handle_device_injection);
|
||||||
|
EXPORT_SYMBOL(zio_handle_label_injection);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user