[Bug 291377] gpart: "gpart list --libxo=json" duplicates attribute keys
Date: Wed, 10 Dec 2025 18:12:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291377
--- Comment #1 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a0347b0f3a6088872c29eddb85154478d543dffb
commit a0347b0f3a6088872c29eddb85154478d543dffb
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2025-12-05 16:16:53 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2025-12-10 18:08:30 +0000
gpart: "gpart --libxo:JP list" duplicates attribute keys
Add leaf-list modifier to attrib as it's possible to have multiple
attributes on a gpart provider.
I purposely made it so that the normal output still says "attrib:" just
so we don't break any scripts people may be using to parse the output,
but the libxo output now says "attribute" just like `gpart show` will do
once https://reviews.freebsd.org/D53950 is merged.
PR: 291377
MFC after: 1 week
Reviewed by: asomers
Sponsored by: ConnectWise
Differential Revision: https://reviews.freebsd.org/D54080
sbin/geom/core/geom.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.