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
F115822267: D34877.diff
Tue, Apr 29, 3:58 AM
Unknown Object (File)
Wed, Apr 23, 3:39 PM
Unknown Object (File)
Sun, Apr 20, 1:56 AM
Unknown Object (File)
Sat, Apr 19, 6:54 AM
Unknown Object (File)
Sat, Apr 19, 6:37 AM
Unknown Object (File)
Sat, Apr 19, 6:28 AM
Unknown Object (File)
Sat, Apr 19, 5:34 AM
Unknown Object (File)
Tue, Apr 8, 7:36 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