Page MenuHomeFreeBSD

libbe: blank out bootfs if it isn't set
Needs ReviewPublic

Authored by kevans on Wed, Sep 16, 3:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 16, 11:39 AM
Unknown Object (File)
Wed, Sep 16, 11:35 AM
Subscribers
None

Details

Reviewers
rew
imp
dch
Summary

Leaving it as "-" exposes a ZFS implementation detail of fetching the
property that we don't want to preserve, and it actually breaks
be_nextboot_name() which expects a non-empty rootfs to contain a fully
qualified dataset.

Blank it out to fix consumers of be_nextboot_name(), which would get
back a pointer to NULL + sizeof(char) if bootfs wasn't set.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 76963
Build 73846: arc lint + arc unit