The "list" and "show" sub-commands of the gpart(8) program behave quite differently and inconsistantly, depending on the exact form/format of the designator used for the device/geom of interest. Specifically: gpart show ada0 -- works just fine gpart show /dev/ada0 -- works just fine gpart list ada0 -- works just fine gpart list /dev/ada0 -- produces error "No such geom" It would be better if the "list" and "show" sub-commands of the gpart(8) program behaved consistantly with one another. Either they should both reject device designators that include a leading "/dev/" or else they should both accept this form. Fix: Sorry, I do not have code to fix this. I am just reporting the bug. How-To-Repeat: See above.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
A commit references this bug: Author: rew Date: Sat Dec 12 07:22:38 UTC 2020 New revision: 368576 URL: https://svnweb.freebsd.org/changeset/base/368576 Log: geom(8): list geoms with /dev/ prefix Allow geom(8) to list geoms with the '/dev/' prefix. `geom part show` accepts the '/dev/' prefix but `geom part list` does not. Modify find_geom() in sbin/geom/core/geom.c to be consistent with the behavior of find_geom() in lib/geom/part/geom_part.c. PR: 188213 Reported by: Ronald F. Guilmette <rfg@tristatelogic.com> Reviewed by: imp, kevans Approved by: kevans (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27556 Changes: head/sbin/geom/core/geom.c
A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0a09fd56501c2508c9d2797302544d55112d767f commit 0a09fd56501c2508c9d2797302544d55112d767f Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2020-12-12 07:22:38 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2021-01-11 20:54:22 +0000 geom(8): list geoms with /dev/ prefix Allow geom(8) to list geoms with the '/dev/' prefix. `geom part show` accepts the '/dev/' prefix but `geom part list` does not. Modify find_geom() in sbin/geom/core/geom.c to be consistent with the behavior of find_geom() in lib/geom/part/geom_part.c. PR: 188213 Reported by: Ronald F. Guilmette <rfg@tristatelogic.com> Reviewed by: imp, kevans Approved by: kevans (mentor) Differential Revision: https://reviews.freebsd.org/D27556 (cherry picked from commit f200cc255f8e90b1905d94d0506a22f5dcd467c0) sbin/geom/core/geom.c | 4 ++++ 1 file changed, 4 insertions(+)