Date: Tue, 26 Nov 2013 10:46:44 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258638 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201311261046.rAQAkiNw021539@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311261046.rAQAkiNw021539>