mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-05 06:43:31 +03:00
Convert Linux-isms to FreeBSD-isms in platform zfs_debug.c
Change some comments copied from the Linux code to describe the appropriate methods on FreeBSD. Convert some tunables to ZFS_MODULE_PARAM so they get created on FreeBSD. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@iXsystems.com> Closes #10647
This commit is contained in:
parent
af524bf7ff
commit
0cc3454821
@ -43,13 +43,10 @@ kstat_t *zfs_dbgmsg_kstat;
|
|||||||
* Internal ZFS debug messages are enabled by default.
|
* Internal ZFS debug messages are enabled by default.
|
||||||
*
|
*
|
||||||
* # Print debug messages
|
* # Print debug messages
|
||||||
* cat /proc/spl/kstat/zfs/dbgmsg
|
* dtrace -n 'zfs-dbgmsg { print(stringof(arg0)); }'
|
||||||
*
|
*
|
||||||
* # Disable the kernel debug message log.
|
* # Disable the kernel debug message log.
|
||||||
* echo 0 > /sys/module/zfs/parameters/zfs_dbgmsg_enable
|
* sysctl vfs.zfs.dbgmsg_enable=0
|
||||||
*
|
|
||||||
* # Clear the kernel debug message log.
|
|
||||||
* echo 0 >/proc/spl/kstat/zfs/dbgmsg
|
|
||||||
*/
|
*/
|
||||||
int zfs_dbgmsg_enable = 1;
|
int zfs_dbgmsg_enable = 1;
|
||||||
|
|
||||||
@ -245,10 +242,10 @@ zfs_dbgmsg_print(const char *tag)
|
|||||||
}
|
}
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
|
||||||
#ifdef _KERNEL
|
/* BEGIN CSTYLED */
|
||||||
module_param(zfs_dbgmsg_enable, int, 0644);
|
ZFS_MODULE_PARAM(zfs, zfs_, dbgmsg_enable, INT, ZMOD_RW,
|
||||||
MODULE_PARM_DESC(zfs_dbgmsg_enable, "Enable ZFS debug message log");
|
"Enable ZFS debug message log");
|
||||||
|
|
||||||
module_param(zfs_dbgmsg_maxsize, int, 0644);
|
ZFS_MODULE_PARAM(zfs, zfs_, dbgmsg_maxsize, INT, ZMOD_RW,
|
||||||
MODULE_PARM_DESC(zfs_dbgmsg_maxsize, "Maximum ZFS debug log size");
|
"Maximum ZFS debug log size");
|
||||||
#endif
|
/* END CSTYLED */
|
||||||
|
Loading…
Reference in New Issue
Block a user