]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libbe: pull props for the correct dataset in be_mounted_at()
authorKyle Evans <kevans@FreeBSD.org>
Thu, 31 Mar 2022 19:19:52 +0000 (14:19 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 6 Apr 2022 03:36:10 +0000 (22:36 -0500)
commitbed9c972aee7aa5ac916f24d60d9dbd109897856
tree09fbc7fddfe6e9137cae6462c72628bbbe56b920
parente3b3dfa77964b235a768534c174a54df03080096
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)
lib/libbe/be_access.c