From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 30 18:40:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D41C6106568B for ; Wed, 30 Dec 2009 18:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 984808FC17 for ; Wed, 30 Dec 2009 18:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBUIe1rO013973 for ; Wed, 30 Dec 2009 18:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBUIe1AK013972; Wed, 30 Dec 2009 18:40:01 GMT (envelope-from gnats) Resent-Date: Wed, 30 Dec 2009 18:40:01 GMT Resent-Message-Id: <200912301840.nBUIe1AK013972@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Przemyslaw Laczynski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 617AA106568F for ; Wed, 30 Dec 2009 18:37:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 50D528FC27 for ; Wed, 30 Dec 2009 18:37:53 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nBUIbrGl028960 for ; Wed, 30 Dec 2009 18:37:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nBUIbrbK028959; Wed, 30 Dec 2009 18:37:53 GMT (envelope-from nobody) Message-Id: <200912301837.nBUIbrbK028959@www.freebsd.org> Date: Wed, 30 Dec 2009 18:37:53 GMT From: Przemyslaw Laczynski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/142174: gpart fails to correctly set partition type for GPT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 18:40:01 -0000 >Number: 142174 >Category: kern >Synopsis: gpart fails to correctly set partition type for GPT >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 30 18:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Przemyslaw Laczynski >Release: 9.0-CURRENT@20091229 >Organization: >Environment: FreeBSD localhost 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Wed Dec 30 14:15:23 UTC 2009 root@:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: gpart fails to correctly create/modify GPT entry partition types and sets it to "!00000000-0000-0000-0000-000000000000" or leaves it unchanged. Full problem log bellow. >How-To-Repeat: localhost# gpart create -s GPT ad4 ad4 created localhost# gpart add -t freebsd-ufs ad4 ad4p1 added localhost# gpart show ad4 => 34 15038397 ad4 GPT (7.2G) 34 15038397 1 !00000000-0000-0000-0000-000000000000 (7.2G) >Fix: Apply patch Patch attached with submission follows: --- /usr/src/sys/geom/part/g_part_gpt.c 2009-12-30 18:27:25.000000000 +0000 +++ /usr/src/sys/geom/part/g_part_gpt.c 2009-12-30 19:10:50.000000000 +0000 @@ -375,7 +375,7 @@ gpt_parse_type(const char *type, struct uuid *uuid) for (uap = &gpt_uuid_alias_match[0]; uap->uuid; uap++) { alias = g_part_alias_name(uap->alias); if (!strcasecmp(type, alias)) { - uuid = uap->uuid; + *uuid = *uap->uuid; return (0); } } >Release-Note: >Audit-Trail: >Unformatted: