Page MenuHomeFreeBSD

Properly reset fields in clean_unrhdr.
ClosedPublic

Authored by mjoras on Oct 13 2017, 5:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 7:22 PM
Unknown Object (File)
Thu, Mar 28, 12:51 AM
Unknown Object (File)
Feb 19 2024, 6:12 AM
Unknown Object (File)
Jan 17 2024, 3:32 AM
Unknown Object (File)
Jan 2 2024, 4:24 PM
Unknown Object (File)
Dec 22 2023, 11:44 PM
Unknown Object (File)
Nov 15 2023, 2:22 AM
Unknown Object (File)
Nov 5 2023, 11:33 PM
Subscribers

Details

Reviewers
rstone
Summary

In r324542 I neglected to reset the first and last fields of struct
unrhdr. This causes a tmpfs to fail the unr(9) consistency checks with
DIAGNOSTIC on. Fix this by resetting the fields to be as if init_unrhdr
was called.

Test Plan

Tested using a tmpfs with an extracted ports tree, unmounted with DIAGNOSTIC
on.

Diff Detail

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