Author: ae
Date: Sat Oct  9 20:06:35 2010
New Revision: 213661
URL: http://svn.freebsd.org/changeset/base/213661

Log:
  MFC r212608 (by pjd):
    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.
  
  Approved by:  kib (mentor)

Modified:
  stable/8/sbin/geom/class/part/geom_part.c
Directory Properties:
  stable/8/sbin/geom/   (props changed)
  stable/8/sbin/geom/class/part/   (props changed)
  stable/8/sbin/geom/class/sched/gsched.8   (props changed)
  stable/8/sbin/geom/class/stripe/   (props changed)

Modified: stable/8/sbin/geom/class/part/geom_part.c
==============================================================================
--- stable/8/sbin/geom/class/part/geom_part.c   Sat Oct  9 15:54:12 2010        
(r213660)
+++ stable/8/sbin/geom/class/part/geom_part.c   Sat Oct  9 20:06:35 2010        
(r213661)
@@ -178,6 +178,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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to