Date: Sat, 9 Oct 2010 20:06:35 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r213661 - in stable/8/sbin/geom/class: part sched Message-ID: <201010092006.o99K6ZVs051107@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010092006.o99K6ZVs051107>