mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 19:28:53 +03:00
Make module tunables cross platform
Adds ZFS_MODULE_PARAM to abstract module parameter setting to operating systems other than Linux. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9230
This commit is contained in:
committed by
Brian Behlendorf
parent
65a91b166e
commit
03fdcb9adc
@@ -768,18 +768,19 @@ traverse_pool(spa_t *spa, uint64_t txg_start, int flags,
|
||||
return (err);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(traverse_dataset);
|
||||
EXPORT_SYMBOL(traverse_pool);
|
||||
|
||||
module_param(zfs_pd_bytes_max, int, 0644);
|
||||
MODULE_PARM_DESC(zfs_pd_bytes_max, "Max number of bytes to prefetch");
|
||||
/* BEGIN CSTYLED */
|
||||
ZFS_MODULE_PARAM(zfs, zfs_, pd_bytes_max, INT, ZMOD_RW,
|
||||
"Max number of bytes to prefetch");
|
||||
|
||||
#if defined(_KERNEL)
|
||||
module_param_named(ignore_hole_birth, send_holes_without_birth_time, int, 0644);
|
||||
MODULE_PARM_DESC(ignore_hole_birth, "Alias for send_holes_without_birth_time");
|
||||
|
||||
module_param_named(send_holes_without_birth_time,
|
||||
send_holes_without_birth_time, int, 0644);
|
||||
MODULE_PARM_DESC(send_holes_without_birth_time,
|
||||
"Ignore hole_birth txg for zfs send");
|
||||
MODULE_PARM_DESC(ignore_hole_birth,
|
||||
"Alias for send_holes_without_birth_time");
|
||||
#endif
|
||||
|
||||
ZFS_MODULE_PARAM(zfs, , send_holes_without_birth_time, INT, ZMOD_RW,
|
||||
"Ignore hole_birth txg for zfs send");
|
||||
/* END CSTYLED */
|
||||
|
||||
Reference in New Issue
Block a user