no /sbin/gpt on 8.0-BETA2
Andrey V. Elsukov
bu7cher at yandex.ru
Wed Aug 26 17:17:48 UTC 2009
Oliver Lehmann wrote:
> Are you sure it is the same error? Why is it working with a full path
> when working with a gmirror object?
>
> # gpart add -b 1572864 -s 262144 -t freebsd-swap -i 2 /dev/mirror/gm0s1
> mirror/gm0s1b added
>
> Why isn't it segfaulting here?
> I already opend a PR...
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=138065
Can you try BETA3 with attached patch?
--
WBR, Andrey V. Elsukov
-------------- next part --------------
Index: geom_part.c
===================================================================
--- sbin/geom/class/part/geom_part.c (revision 196511)
+++ sbin/geom/class/part/geom_part.c (working copy)
@@ -153,6 +153,9 @@
{
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 freebsd-current
mailing list