Page MenuHomeFreeBSD

zfs: Emit warning upon use of legacy sysctl
Needs ReviewPublic

Authored by emaste on Fri, Oct 10, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 1:11 AM
Unknown Object (File)
Sat, Oct 11, 12:12 AM
Unknown Object (File)
Sat, Oct 11, 12:09 AM
Unknown Object (File)
Sat, Oct 11, 12:09 AM
Unknown Object (File)
Fri, Oct 10, 11:36 PM

Details

Reviewers
mm
Group Reviewers
releng
ZFS
Summary
PR:             266374

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/contrib/openzfs/module/os/freebsd/zfs/sysctl_os.c
754

AFAICT min_auto_ashift/max_auto_ashift did not use arg1/arg2 before, I imagine this was just done without being required.

jlduran added inline comments.
sys/contrib/openzfs/module/os/freebsd/zfs/sysctl_os.c
167

I would rather take an old, new tuple with the full sysctl instead, as it is not a 1:1 translation:

oldnew
vfs.zfs.arc_maxvfs.zfs.arc.max
vfs.zfs.arc_minvfs.zfs.arc.min
vfs.zfs.arc_free_targetvfs.zfs.arc.free_target
vfs.zfs.arc_no_grow_shiftvfs.zfs.arc.no_grow_shift
vfs.zfs.max_auto_ashiftvfs.zfs.vdev.max_auto_ashift
vfs.zfs.min_auto_ashiftvfs.zfs.vdev.min_auto_ashift
sys/contrib/openzfs/module/os/freebsd/zfs/sysctl_os.c
167

Sans vfs.zfs..

Sorry to bother, but I have the following doubt:
There are still a few renamed LEGACY sysctls that were removed (and reverted):

oldnew
vfs.zfs.l2arc_write_maxvfs.zfs.l2arc.write_max
vfs.zfs.l2arc_write_boostvfs.zfs.l2arc.write_boost
vfs.zfs.l2arc_headroomvfs.zfs.l2arc.headroom
vfs.zfs.l2arc_headroom_boostvfs.zfs.l2arc.headroom_boost
vfs.zfs.l2arc_feed_secsvfs.zfs.l2arc.feed_secs
vfs.zfs.l2arc_feed_min_msvfs.zfs.l2arc.feed_min_ms
vfs.zfs.l2arc_noprefetchvfs.zfs.l2arc.noprefetch
vfs.zfs.l2arc_feed_againvfs.zfs.l2arc.feed_again
vfs.zfs.l2arc_norwvfs.zfs.l2arc.norw