diff options
author | avg <avg@FreeBSD.org> | 2014-01-16 14:21:24 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-01-16 14:21:24 +0000 |
commit | 2a24dbf41713d2907dc19b85e50ddfb5cdd14ca0 (patch) | |
tree | 2f25f4bd096442325e6e2476ba6790f5e9bf9638 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | |
parent | 545049923ab7b79bdef089049fecd12ef7952b23 (diff) | |
download | FreeBSD-src-2a24dbf41713d2907dc19b85e50ddfb5cdd14ca0.zip FreeBSD-src-2a24dbf41713d2907dc19b85e50ddfb5cdd14ca0.tar.gz |
MFC r258638,258642: expose zfs_flags as debug.zfs_flags r/w tunable and sysctl
Sponsored by: HybridCluster
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c index 17983bf..718371d 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c @@ -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, + "ZFS debug flags."); /* * zfs_recover can be set to nonzero to attempt to recover from |