From owner-freebsd-current@FreeBSD.ORG Wed Aug 26 17:17:48 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCBD81065672; Wed, 26 Aug 2009 17:17:48 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward13.yandex.ru (forward13.yandex.ru [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id 6CB158FC22; Wed, 26 Aug 2009 17:17:48 +0000 (UTC) Received: from smtp13.yandex.ru (smtp13.yandex.ru [95.108.130.68]) by forward13.yandex.ru (Yandex) with ESMTP id 7C581A786B3; Wed, 26 Aug 2009 21:17:46 +0400 (MSD) Received: from btr.properlan.net (vpn.heavennet.ru [77.72.136.194]) by smtp13.yandex.ru (Yandex) with ESMTPSA id 18833322018E; Wed, 26 Aug 2009 21:17:46 +0400 (MSD) Message-ID: <4A956E33.3060900@yandex.ru> Date: Wed, 26 Aug 2009 21:17:39 +0400 From: "Andrey V. Elsukov" User-Agent: Thunderbird 2.0.0.22 (X11/20090821) MIME-Version: 1.0 To: Oliver Lehmann References: <20090822114802.df02b57d.lehmann@ans-netz.de> <20090822120809.b749c7e8.lehmann@ans-netz.de> <4A900234.1030202@yandex.ru> <20090822172250.3eaa80fe.lehmann@ans-netz.de> In-Reply-To: <20090822172250.3eaa80fe.lehmann@ans-netz.de> Content-Type: multipart/mixed; boundary="------------070302090704000704000200" X-Yandex-TimeMark: 1251307066 X-Yandex-Spam: 1 X-Yandex-Front: smtp13.yandex.ru Cc: freebsd-current@freebsd.org, marcel@freebsd.org Subject: Re: no /sbin/gpt on 8.0-BETA2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 17:17:48 -0000 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--