Page MenuHomeFreeBSD

geom(8): list geoms with /dev/ prefix
ClosedPublic

Authored by rew on Dec 10 2020, 7:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 16, 8:30 AM
Unknown Object (File)
Sun, Feb 15, 4:21 PM
Unknown Object (File)
Wed, Feb 11, 6:05 AM
Unknown Object (File)
Sun, Feb 8, 1:29 PM
Unknown Object (File)
Sun, Feb 8, 11:27 AM
Unknown Object (File)
Sat, Jan 31, 2:18 PM
Unknown Object (File)
Tue, Jan 27, 11:14 AM
Unknown Object (File)
Jan 15 2026, 10:25 PM
Subscribers

Details

Summary

gpart show accepts geom names with the '/dev/' prefix, but gpart list does
not.

This patch modifies 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: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188213

Test Plan

gpart list /dev/ada0

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rew requested review of this revision.Dec 10 2020, 7:31 PM

Dozens of ways to skin this cat... this is one of the less objectionable ones :).

This revision is now accepted and ready to land.Dec 10 2020, 7:41 PM

LGTM

Approved by: kevans (mentor)

This revision was automatically updated to reflect the committed changes.