Date: Wed, 26 Aug 2009 21:17:39 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Oliver Lehmann <lehmann@ans-netz.de> Cc: freebsd-current@freebsd.org, marcel@freebsd.org Subject: Re: no /sbin/gpt on 8.0-BETA2 Message-ID: <4A956E33.3060900@yandex.ru> In-Reply-To: <20090822172250.3eaa80fe.lehmann@ans-netz.de> References: <20090822114802.df02b57d.lehmann@ans-netz.de> <20090822120809.b749c7e8.lehmann@ans-netz.de> <4A900234.1030202@yandex.ru> <20090822172250.3eaa80fe.lehmann@ans-netz.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------070302090704000704000200 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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 --------------070302090704000704000200 Content-Type: text/plain; name="geom_part.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="geom_part.patch.txt" 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); --------------070302090704000704000200--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A956E33.3060900>