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.

Approved by: re (gjb)
Reported by: Christian McDonald <cmcdonald netgate com>

(cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37)
(cherry picked from commit bed9c972aee7aa5ac916f24d60d9dbd109897856)

Details

Provenance
kevansAuthored on Mar 31 2022, 7:19 PM
Parents
rG9c1ad063e5d1: libarchive: merge vendor bugfixes
Branches
Unknown
Tags
Unknown