diff options
author | avg <avg@FreeBSD.org> | 2017-05-24 11:38:43 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-05-24 11:38:43 +0000 |
commit | ca89cb7f5f8590b2b8e1b6854716003ac28380bb (patch) | |
tree | 810eea431eadefd409d93b763e6ccfd7085666b7 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c | |
parent | a7a93155d4bf3ea48895fd00d0de5015871ed479 (diff) | |
download | FreeBSD-src-ca89cb7f5f8590b2b8e1b6854716003ac28380bb.zip FreeBSD-src-ca89cb7f5f8590b2b8e1b6854716003ac28380bb.tar.gz |
MFC r316854: rename vfs.zfs.debug_flags to vfs.zfs.debugflags
Since this is a stable branch vfs.zfs.debug_flags sysctl is also kept.
The corresponing tunable could never work.
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 | 8 |
1 files changed, 6 insertions, 2 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 30b1117..cafa083 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 @@ -286,10 +286,14 @@ sysctl_vfs_zfs_debug_flags(SYSCTL_HANDLER_ARGS) return (0); } -TUNABLE_INT("vfs.zfs.debug_flags", &zfs_flags); -SYSCTL_PROC(_vfs_zfs, OID_AUTO, debug_flags, +TUNABLE_INT("vfs.zfs.debugflags", &zfs_flags); +SYSCTL_PROC(_vfs_zfs, OID_AUTO, debugflags, CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(int), sysctl_vfs_zfs_debug_flags, "IU", "Debug flags for ZFS testing."); +SYSCTL_PROC(_vfs_zfs, OID_AUTO, debug_flags, + CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(int), + sysctl_vfs_zfs_debug_flags, "IU", + "Debug flags for ZFS testing (deprecated, see vfs.zfs.debugflags)."); /* * If destroy encounters an EIO while reading metadata (e.g. indirect |