svn commit: r316854 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Andriy Gapon
avg at FreeBSD.org
Fri Apr 14 16:20:56 UTC 2017
On 14/04/2017 18:55, Alan Somers wrote:
> Are you sure it's a good idea to MFC this change? Doing so will upset
> anybody currently setting that sysctl in /etc/sysctl.conf.
Well, this is a debug knob, so I expected that it is tweaked by hand on as
needed basis. I don't expect that it is used as a permanent setting.
But to err on the side of caution I can add a compatibility sysctl name.
> On Fri, Apr 14, 2017 at 9:35 AM, Andriy Gapon <avg at freebsd.org> wrote:
>> Author: avg
>> Date: Fri Apr 14 15:35:07 2017
>> New Revision: 316854
>> URL: https://svnweb.freebsd.org/changeset/base/316854
>>
>> Log:
>> rename vfs.zfs.debug_flags to vfs.zfs.debugflags
>>
>> While the former name is easier to read, the "_flags" suffix has a special
>> meaning for loader(8) and, thus, it was impossible to set the knob via
>> loader.conf(5). The loader interpreted the setting as flags that should
>> be passed to a kernel module named "vfs.zfs.debug".
>>
>> Discussed with: smh
>> MFC after: 2 weeks
>>
>> 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 Fri Apr 14 15:31:04 2017 (r316853)
>> +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c Fri Apr 14 15:35:07 2017 (r316854)
>> @@ -353,7 +353,7 @@ sysctl_vfs_zfs_debug_flags(SYSCTL_HANDLE
>> return (0);
>> }
>>
>> -SYSCTL_PROC(_vfs_zfs, OID_AUTO, debug_flags,
>> +SYSCTL_PROC(_vfs_zfs, OID_AUTO, debugflags,
>> CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, 0, sizeof(int),
>> sysctl_vfs_zfs_debug_flags, "IU", "Debug flags for ZFS testing.");
>>
>>
--
Andriy Gapon
More information about the svn-src-all
mailing list