expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
This knob is purposefully hidden under debug. MFC after: 5 days Sponsored by: HybridCluster
This commit is contained in:
parent
f033525405
commit
aab537bd02
@ -243,6 +243,10 @@ int zfs_flags = ~(ZFS_DEBUG_DPRINTF | ZFS_DEBUG_SPA);
|
||||
#else
|
||||
int zfs_flags = 0;
|
||||
#endif
|
||||
SYSCTL_DECL(_debug);
|
||||
TUNABLE_INT("debug.zfs_flags", &zfs_flags);
|
||||
SYSCTL_INT(_debug, OID_AUTO, zfs_flags, CTLFLAG_RWTUN, &zfs_flags, 0,
|
||||
"Try to recover from otherwise-fatal errors.");
|
||||
|
||||
/*
|
||||
* zfs_recover can be set to nonzero to attempt to recover from
|
||||
|
Loading…
x
Reference in New Issue
Block a user