Page MenuHomeFreeBSD

Fix OID format for `vm.swap_reserved` and `vm.swap_total`
ClosedPublic

Authored by ngie on Apr 11 2022, 12:35 AM.
Tags
None
Referenced Files
F109895129: D34877.diff
Mon, Feb 10, 9:37 PM
Unknown Object (File)
Wed, Jan 22, 12:02 AM
Unknown Object (File)
Dec 13 2024, 4:39 AM
Unknown Object (File)
Nov 21 2024, 6:33 AM
Unknown Object (File)
Oct 3 2024, 6:12 AM
Unknown Object (File)
Oct 1 2024, 12:54 PM
Unknown Object (File)
Sep 27 2024, 7:35 PM
Unknown Object (File)
Sep 20 2024, 1:02 PM
Subscribers

Details

Summary

The correct OID format for CTLTYPE_U64 is QU (uquad_t), not A
(text expressed via char *).

This issue was noticed while doing an sysctl tree walk using a
sysctl(9) consumer that relies on the OID format to intuit what the
type should be for a given sysctl.

MFC after: 1 month
Sponsored by: DellEMC Isilon

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45119
Build 42007: arc lint + arc unit