mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Refactor deadman set failmode to be cross platform
Update zfs_deadman_failmode to use the ZFS_MODULE_PARAM_CALL wrapper, and split the common and platform specific portions. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9670
This commit is contained in:
committed by
Brian Behlendorf
parent
2a8ba608d3
commit
e64e84eca5
@@ -42,6 +42,19 @@
|
||||
#include <sys/kstat.h>
|
||||
#include "zfs_prop.h"
|
||||
|
||||
|
||||
int
|
||||
param_set_deadman_failmode(const char *val, zfs_kernel_param_t *kp)
|
||||
{
|
||||
int error;
|
||||
|
||||
error = -param_set_deadman_failmode_common(val);
|
||||
if (error == 0)
|
||||
error = param_set_charp(val, kp);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
int
|
||||
param_set_deadman_ziotime(const char *val, zfs_kernel_param_t *kp)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user