[Bug 286306] Feature request: be able to print default value of sysctl writable var
Date: Fri, 23 May 2025 15:43:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286306
Mark Johnston <markj@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markj@FreeBSD.org
Status|New |Open
--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
I don't think this is really practical -- sysctls don't record their default
values anywhere, and changing them to do so would be quite complex and require
extra memory for each sysctl node.
One idea which might be close enough would be to have a "dirty" flag for
sysctls which have been modified at some point, e.g., via the command line or
sysctl(8) or a tunable. So you could at least see that the sysctl was modified
at some point. But even this might be quite difficult to define--what if the
default value of a sysctl depends on another sysctl's value, and that sysctl
was modified.
Do you have some specific scenario where this would be useful?
--
You are receiving this mail because:
You are the assignee for the bug.