HomeFreeBSD

libbe: pull props for the correct dataset in be_mounted_at()

Description

libbe: pull props for the correct dataset in be_mounted_at()

The props feature to this API was added as a "just in case", with no
planned consumer. It turns out that it was implemented incorrectly,
tapping out props for the BE root (BE's parent) rather than the BE
itself in all cases.

Fetch properties for the dataset that's actually mounted at the queried
path.

Reported by: Christian McDonald <cmcdonald netgate com>

(cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37)

Details

Provenance
kevansAuthored on Mar 31 2022, 7:19 PM
Parents
rGe3b3dfa77964: gpart: Avoid geom_gettree() call in "bootcode -b".
Branches
Unknown
Tags
Unknown