-
Notifications
You must be signed in to change notification settings - Fork 1.9k
tunables: remove legacy FreeBSD aliases #17375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Appears even CI itself uses some. We need to update |
Huh, thanks. I need to fix my test rig some then, because it didn't throw those up (I mean yeah, the CI did, but I hadn't got into that yet). Cheers :) |
These are old pre-OpenZFS tunable names that have long been available via either conventional ZFS_MODULE_PARAM tunables or through kstats. There's no point doubling up anymore, so delete them. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
41852c3
to
911a0cb
Compare
I've just fixed couple things (systat and top) in FreeBSD base still using old names: https://cgit.freebsd.org/src/commit/?id=8aad1e6148d3389df100bb0391e2d3a909f26ecf . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't really comment on if the old names are still used anywhere, but the change itself looks good. Now would be the time to drop them before the 2.4 release.
Once https://cgit.freebsd.org/src/commit/?id=8aad1e6148d3389df100bb0391e2d3a909f26ecf lands we can go ahead and merge this. |
@behlendorf It is in FreeBSD main already, and I'll merge it into stable branches tomorrow. Hope I'll be allowed to merge it into upcoming 14.3. PS: Merged. |
@amotin thanks for doing that! I asked on socials and a couple of people pointed out that they have various old-style tunables set in various boot configs and such, so I'd like to stick this on hold for a moment while I go and find the right FreeBSD people to get some advice. We might be better to provide aliases or deprecation warnings, or FreeBSD might prefer to patch it themselves, or maybe it just gets documented around for 15. I still want to do this, but I don't wanna be a jerk and surprise anyone. So I've put the "blocked" tag on this, and I'll let you know what the plan is as soon as I can. |
Motivation and Context
These are old pre-OpenZFS tunable names that have long been available via either conventional
ZFS_MODULE_PARAM
tunables or through kstats. It seems there's no point doubling up on them after so many years, and it's time for them to go.I'd love an old FreeBSD hand or two to look over them though. FreeBSD generally doesn't churn much, so it wouldn't surprise me if there is critical code and documentation that relies on these to remain. I'm in no hurry to nuke anything in use; on the contrary, I'd like to find out and make sure it's properly documented and tested on our side. So please review this!
Description
Here's the list of names removed, with their "new" names on the right:
Note that there's still a handful of tunables in
module/os/freebsd/zfs/sysctl_os.c
that don't have "core" counterparts; those remain for the moment. I also haven't touchedvfs.zfs.debugflags
even thoughvfs.zfs.flags
exists, because I think the former is a little smarter. I'll sort all these out another time.How Has This Been Tested?
ZTS run in progress on FreeBSD 14.2-p1.
Types of changes
Checklist:
Signed-off-by
.