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)
Tue, Jan 13, 2:11 PM
Unknown Object (File)
Sat, Jan 10, 3:58 PM
Unknown Object (File)
Sat, Jan 10, 4:39 AM
Unknown Object (File)
Tue, Dec 30, 6:27 PM
Unknown Object (File)
Sun, Dec 28, 8:51 AM
Unknown Object (File)
Thu, Dec 25, 8:30 PM
Unknown Object (File)
Tue, Dec 23, 2:31 AM
Unknown Object (File)
Dec 18 2025, 9:58 AM
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 12053
Build 12360: arc lint + arc unit