svn commit: r212608 - head/sbin/geom/class/part
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Sep 14 11:36:26 UTC 2010
Author: pjd
Date: Tue Sep 14 11:36:26 2010
New Revision: 212608
URL: http://svn.freebsd.org/changeset/base/212608
Log:
All gpart(8) subcommands apart from the 'bootcode' subcommand handle
given geom/provider names with and without /dev/ prefix. Teach the
'bootcode' subcommand to handle /dev/<foo> names as well.
Modified:
head/sbin/geom/class/part/geom_part.c
Modified: head/sbin/geom/class/part/geom_part.c
==============================================================================
--- head/sbin/geom/class/part/geom_part.c Tue Sep 14 11:19:21 2010 (r212607)
+++ head/sbin/geom/class/part/geom_part.c Tue Sep 14 11:36:26 2010 (r212608)
@@ -183,6 +183,8 @@ find_geom(struct gclass *classp, const c
{
struct ggeom *gp;
+ if (strncmp(name, _PATH_DEV, strlen(_PATH_DEV)) == 0)
+ name += strlen(_PATH_DEV);
LIST_FOREACH(gp, &classp->lg_geom, lg_geom) {
if (strcmp(gp->lg_name, name) == 0)
return (gp);
More information about the svn-src-all
mailing list