Page MenuHomeFreeBSD

Properly reset fields in clean_unrhdr.
ClosedPublic

Authored by mjoras on Oct 13 2017, 5:17 PM.
Tags
None
Referenced Files
F132938861: D12662.id33999.diff
Tue, Oct 21, 8:23 AM
Unknown Object (File)
Mon, Oct 20, 4:20 PM
Unknown Object (File)
Mon, Oct 20, 4:18 PM
Unknown Object (File)
Mon, Oct 20, 7:42 AM
Unknown Object (File)
Sun, Oct 19, 4:12 PM
Unknown Object (File)
Thu, Oct 16, 4:39 PM
Unknown Object (File)
Wed, Oct 15, 9:30 PM
Unknown Object (File)
Wed, Oct 15, 5:44 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