Page MenuHomeFreeBSD

Properly reset fields in clean_unrhdr.
ClosedPublic

Authored by mjoras on Oct 13 2017, 5:17 PM.
Tags
None
Referenced Files
F172252432: D12662.diff
Thu, Sep 17, 6:48 AM
Unknown Object (File)
Wed, Sep 16, 3:38 PM
Unknown Object (File)
Sun, Sep 13, 4:38 AM
Unknown Object (File)
Sat, Sep 12, 12:27 PM
Unknown Object (File)
Fri, Sep 11, 5:23 PM
Unknown Object (File)
Fri, Sep 11, 5:08 AM
Unknown Object (File)
Thu, Sep 10, 3:20 AM
Unknown Object (File)
Tue, Sep 8, 9:52 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