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)
Fri, Nov 29, 7:47 AM
Unknown Object (File)
Fri, Nov 22, 10:46 AM
Unknown Object (File)
Wed, Nov 20, 6:21 PM
Unknown Object (File)
Mon, Nov 18, 7:34 AM
Unknown Object (File)
Sep 30 2024, 2:17 AM
Unknown Object (File)
Sep 29 2024, 5:59 AM
Unknown Object (File)
Sep 27 2024, 3:33 AM
Unknown Object (File)
Sep 18 2024, 7:17 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 12036
Build 12347: arc lint + arc unit