svn commit: r258638 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Tue Nov 26 10:46:44 UTC 2013
Author: avg
Date: Tue Nov 26 10:46:43 2013
New Revision: 258638
URL: http://svnweb.freebsd.org/changeset/base/258638
Log:
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
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Tue Nov 26 10:34:34 2013 (r258637)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Tue Nov 26 10:46:43 2013 (r258638)
@@ -243,6 +243,10 @@ int zfs_flags = ~(ZFS_DEBUG_DPRINTF | ZF
#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
More information about the svn-src-all
mailing list