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)
Mar 11 2024, 6:02 PM
Unknown Object (File)
Mar 11 2024, 6:02 PM
Unknown Object (File)
Mar 11 2024, 6:02 PM
Unknown Object (File)
Mar 8 2024, 3:05 AM
Unknown Object (File)
Jan 7 2024, 9:49 AM
Unknown Object (File)
Jan 7 2024, 9:49 AM
Unknown Object (File)
Jan 7 2024, 9:49 AM
Unknown Object (File)
Jan 4 2024, 6:27 AM
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.