git: b8f5e2765d63 - releng/13.1 - libbe: pull props for the correct dataset in be_mounted_at()

From: Kyle Evans <>
Date: Wed, 06 Apr 2022 14:33:17 UTC
The branch releng/13.1 has been updated by kevans:


commit b8f5e2765d6322e7a31ad98605a4056be2b8c7d7
Author:     Kyle Evans <>
AuthorDate: 2022-03-31 19:19:52 +0000
Commit:     Kyle Evans <>
CommitDate: 2022-04-06 14:32:31 +0000

    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
    Approved by:    re (gjb)
    Reported by:    Christian McDonald <cmcdonald netgate com>
    (cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37)
    (cherry picked from commit bed9c972aee7aa5ac916f24d60d9dbd109897856)
 lib/libbe/be_access.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libbe/be_access.c b/lib/libbe/be_access.c
index 74059a0a5693..9f7ad32599ac 100644
--- a/lib/libbe/be_access.c
+++ b/lib/libbe/be_access.c
@@ -210,7 +210,7 @@ be_mounted_at(libbe_handle_t *lbh, const char *path, nvlist_t *details)
 	if ( != NULL) {
 		if (details != NULL) {
-			if ((root_hdl = zfs_open(lbh->lzh, lbh->root,
+			if ((root_hdl = zfs_open(lbh->lzh,,
 				return (BE_ERR_ZFSOPEN);