From nobody Wed Apr 06 03:41:08 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6DC3F1A8F9B6; Wed, 6 Apr 2022 03:41:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KY9KJ2d33z4qkQ; Wed, 6 Apr 2022 03:41:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WUDajByvx7WPptIitbuTO68ehubvV55HvFn1hHOyeIY=; b=q/knEAgbjTMiZnhFbADKrxRiFBCzZtxBzlFQbelcvRO+lnXk4rJvSiGerWScGhhD8a8nHA UBoq4WJKEwl7i6ETK+o2US6qbUdiVQ7jrl7f5iyPxoNe7vnqAiUrdkpp5O7WW2SQcTDoJh agcI4lqkovnViPsDB+5mpx7U+mywt2XtmyET6Zp2OjK5nS4avhDFxZevn4fcb2o1JWu7ps cMOe0IgAQBxydtZJkLtvc52TyA3NenYAlHkjjytd+tdtQD/5GHIIMCskdbgm65h4eMEMc/ nguUUMSWrmjaZKbD02WB78m0Tqx0vGy3gnu7nxpK0BORo+b7YkVuGrYP7aA7ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3ADC213C0D; Wed, 6 Apr 2022 03:41:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2363f816085987; Wed, 6 Apr 2022 03:41:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2363f89e085986; Wed, 6 Apr 2022 03:41:08 GMT (envelope-from git) Date: Wed, 6 Apr 2022 03:41:08 GMT Message-Id: <202204060341.2363f89e085986@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: bed9c972aee7 - stable/13 - libbe: pull props for the correct dataset in be_mounted_at() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bed9c972aee7aa5ac916f24d60d9dbd109897856 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216468; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WUDajByvx7WPptIitbuTO68ehubvV55HvFn1hHOyeIY=; b=vzC1OSAz9d1qHpB1Zoq5RZOzEL95DTbLAtpSAOIJK24NeWZjsRIDshTT+BReTba5Z2pjsR 3HKXSMtkWrpFou/wfb38rWlog7r+6H8iFnBCZkVuRJXy7SITzESziACVzkU3FRVXk8w/4O PeDc8pH3EttB9nqH3WQ9uYFxm/ceMKy33VdwHXNCCFMuiEdlJ0fAV+dMAOkURs1uYJh+0Q RUBwwDbzRP+Zng5InYNEo7n4b7QtIBq5PUC+QoxaFgRp6SprSP6/TKUdUVacwhrvrveZ5t xdbra/N3wdVF59PE36xzpmZEKwMg92/Wmzg6yW8cbUQ3SOd/SoqutTY/8JE90Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649216468; a=rsa-sha256; cv=none; b=R6qBm3BbjntyLzJrGy3c2ukbvKURYqcFs1Sg/gMp6bqI6wHa4q1PcqPedNVvqKuwhwATug 6iLFzDnV7IjfCV78FHKy0VPfPT9onhRyv78NXgsez6DFO8D84xaSp0WxDYPJJIwKDi3jOH d1D1xvz+l7otyinj6e6Woujna+M9XGRKZWA0k3zva8yNWsowRIpCBWUHL4oLwOvuMzCLCC Lv6kHRA+kk0k3fCwrZrxuQY/LnUCTR9aj+kVLFjsxeURX6/hZMevX9BgshAD4C2QCuuFqz Mi1a0QdJtS/06WZvodYZhpjHefoODn2+QA66vTtZHIFbA5LWcAazHJlGmlvubQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=bed9c972aee7aa5ac916f24d60d9dbd109897856 commit bed9c972aee7aa5ac916f24d60d9dbd109897856 Author: Kyle Evans AuthorDate: 2022-03-31 19:19:52 +0000 Commit: Kyle Evans CommitDate: 2022-04-06 03:36:10 +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 path. Reported by: Christian McDonald (cherry picked from commit 31190aa02eef05b1b58ba89212dc8c8738770e37) --- 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 (info.name != NULL) { if (details != NULL) { - if ((root_hdl = zfs_open(lbh->lzh, lbh->root, + if ((root_hdl = zfs_open(lbh->lzh, info.name, ZFS_TYPE_FILESYSTEM)) == NULL) { free(info.name); return (BE_ERR_ZFSOPEN);