FreeBSD Bugzilla – Attachment 212834 Details for
Bug 244867
Provide sysctl kern.boot_id
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix output for sysctl kern.boot_id
fix_output_kern.boot_id.patch (text/plain), 881 bytes, created by
Ricardo Fraile
on 2020-03-29 15:52:02 UTC
(
hide
)
Description:
Fix output for sysctl kern.boot_id
Filename:
MIME Type:
Creator:
Ricardo Fraile
Created:
2020-03-29 15:52:02 UTC
Size:
881 bytes
patch
obsolete
>--- freebsd/sys/kern/kern_mib.c 2020-03-29 16:36:17.306435229 +0200 >+++ freebsd-new/sys/kern/kern_mib.c 2020-03-29 16:34:29.006535171 +0200 >@@ -452,9 +452,9 @@ > MTX_SYSINIT(bootid_lock, &bootid_lk, "bootid generator lock", MTX_DEF); > > static int >-sysctl_bootid(SYSCTL_HANDLER_ARGS) >+sysctl_boot_id(SYSCTL_HANDLER_ARGS) > { >- static uint8_t boot_id[16]; >+ static uint8_t boot_id[8]; > static bool initialized = false; > > mtx_lock(&bootid_lk); >@@ -471,8 +471,8 @@ > return (SYSCTL_OUT(req, boot_id, sizeof(boot_id))); > } > SYSCTL_PROC(_kern, OID_AUTO, boot_id, >- CTLTYPE_STRUCT | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_CAPRD, >- NULL, 0, sysctl_bootid, "", "Random boot ID"); >+ CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_CAPRD, >+ NULL, 0, sysctl_boot_id, "LU", "Random boot ID"); > > /* > * The osrelease string is copied from the global (osrelease in vers.c) into
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244867
: 212834 |
212836
|
212837