From owner-cvs-src@FreeBSD.ORG Wed Jan 30 00:30:55 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4315516A418 for ; Wed, 30 Jan 2008 00:30:55 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1F613C458 for ; Wed, 30 Jan 2008 00:30:54 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so23456rvb.43 for ; Tue, 29 Jan 2008 16:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=TrJcoSw+I0ypB+3RUMlF4S/rq/wSPZ6kGKI8PSpRPmM=; b=xL6sxhrKEZZ9t5vGMC0ZFcUuxI1i6F73fuuTZM4X2lDcptYEnLUUuHjkJkU5uQM25oX5qU8jgaVOP/00soGsMZ9GWnDNZVajSfBCYoRw5XczhIxAaJ7m2Snfp/iNwH3DxxPaCBI+x8VWsoIojNUdl3vTd6GjLrP+hn+w8CJXi+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=MvHUNcnDm0IsUCyXyIkyVniUyZtvwgFbU8J5brejEUrKEfaUpzneWHzn19N7CPjF9xftWstcS3cY5w4E58toOdfEYhPfb1OI0mp6YqnWMcZaJKaY6nYhIElJuJSQh5FS4+WgOkYxyaEMoO1JZxw+82KP6bchNUki104eRyHvCZA= Received: by 10.141.19.16 with SMTP id w16mr72103rvi.8.1201652676014; Tue, 29 Jan 2008 16:24:36 -0800 (PST) Received: by 10.141.170.18 with HTTP; Tue, 29 Jan 2008 16:24:35 -0800 (PST) Message-ID: <2e77fc10801291624rcd55d38sa67dce7787918a80@mail.gmail.com> Date: Wed, 30 Jan 2008 02:24:35 +0200 From: "Niki Denev" Sender: ndenev@gmail.com To: "John Baldwin" In-Reply-To: <2e77fc10801291618r5ca9d23ah362e483d286b2df2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801241942.m0OJgH5J000300@repoman.freebsd.org> <2e77fc10801291618r5ca9d23ah362e483d286b2df2@mail.gmail.com> X-Google-Sender-Auth: a8b46e4ad8091a10 Cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libstand Makefile src/sbin/gpt Makefile add.c boot.c gpt.8 gpt.c gpt.h show.c src/sys/boot/i386 Makefile src/sys/boot/i386/gptboot Makefile gptboot.c gptldr.S src/sys/boot/i386/libi386 biosdisk.c devicename.c ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 00:30:55 -0000 On Jan 30, 2008 2:18 AM, Niki Denev wrote: > On Jan 24, 2008 9:42 PM, John Baldwin wrote: > > jhb 2008-01-24 19:42:17 UTC > > > > FreeBSD src repository > > > > Modified files: (Branch: RELENG_7) > > lib/libstand Makefile > > sbin/gpt Makefile add.c gpt.8 gpt.c gpt.h show.c > > sys/boot/i386 Makefile > > sys/boot/i386/libi386 biosdisk.c devicename.c > > sys/boot/pc98/libpc98 biosdisk.c > > sys/geom/part g_part.c g_part.h g_part_gpt.c > > sys/sys gpt.h > > Added files: (Branch: RELENG_7) > > sbin/gpt boot.c > > sys/boot/i386/gptboot Makefile gptboot.c gptldr.S > > sys/boot/i386/pmbr Makefile pmbr.s > > Log: > > MFC: Add support for booting from GPT-labeled disks from the BIOS. This > > includes /boot/pmbr, /boot/gptboot, and 'gpt boot'. > > Thanks! Works perfectly here! > > I believe only this little patch is needed for gpt to behave as > advertised in the manual page. > ( to be able to "add" gpt partitions of type "boot" ) > > --- sbin/gpt/gpt.c.orig 2008-01-30 02:05:44.000000000 +0200 > +++ sbin/gpt/gpt.c 2008-01-30 02:07:21.000000000 +0200 > @@ -268,6 +268,12 @@ > return (0); > > switch (*s) { > + case 'b': > + if (strcmp(s, "boot") == 0) { > + uuid_t boot = GPT_ENT_TYPE_FREEBSD_BOOT; > + *uuid = boot; > + return (0); > + } > case 'e': > if (strcmp(s, "efi") == 0) { > uuid_t efi = GPT_ENT_TYPE_EFI; > oops, forgot one "break" : --- sbin/gpt/gpt.c.orig 2008-01-30 02:05:44.000000000 +0200 +++ sbin/gpt/gpt.c 2008-01-30 02:23:06.000000000 +0200 @@ -268,6 +268,13 @@ return (0); switch (*s) { + case 'b': + if (strcmp(s, "boot") == 0) { + uuid_t boot = GPT_ENT_TYPE_FREEBSD_BOOT; + *uuid = boot; + return (0); + } + break; case 'e': if (strcmp(s, "efi") == 0) { uuid_t efi = GPT_ENT_TYPE_EFI;