From owner-freebsd-stable@FreeBSD.ORG Wed May 27 22:31:34 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBECA1065675; Wed, 27 May 2009 22:31:34 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 372058FC14; Wed, 27 May 2009 22:31:33 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: by bwz9 with SMTP id 9so5107176bwz.43 for ; Wed, 27 May 2009 15:31:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6eSRfmkWYjbilzd8jEoYekfIwOXUKvM4nNKU58PaPsk=; b=UNs582u9sQfuE59gjYBxeMGY3RmCn7dKOZxUj05ytLfKFDlNKmBP8n80Y95lq3yK9U aVA/6lba18Lu0hP7eawXU+0gGiN/p04558nxnACM8eLh88gVM6IgNykw3NaOC8FqGzoj KS/Ewd8BKp3ZorddilERTRfoGijFio9319GjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MAgMNfd3ejIPn0wBmcDo6zqHnRrVJSg+7OFoHKD9IZJ6dQPgR/m7mJHuaOUr1yJFWR XzflhRf4W63/1mh6F5U2l6MttbPZLEh+3o3z7J8hPzfKSQ2PbznxcWQHQQrjEg0cVnuk yHVXryJouwYew4HMs1XxvSMNXV61BklRR7CQM= MIME-Version: 1.0 Received: by 10.103.11.7 with SMTP id o7mr404531mui.95.1243463492960; Wed, 27 May 2009 15:31:32 -0700 (PDT) In-Reply-To: <7BDF3D7A-4EA2-499A-9481-A88F3CA285BC@yellowspace.net> References: <4A1BED8C.1070408@h3q.com> <9e20d71e0905260854t1c731f68g3965c3406dc304c5@mail.gmail.com> <18972.5227.526290.349958@already.dhcp.gene.com> <6ADD3B12-380C-4BFD-AA46-778DF1768453@verweg.com> <9e20d71e0905270548j376fe604uffff66988e9b7ebe@mail.gmail.com> <7BDF3D7A-4EA2-499A-9481-A88F3CA285BC@yellowspace.net> Date: Thu, 28 May 2009 01:31:32 +0300 Message-ID: <9e20d71e0905271531v240a56cwf7c39d6083331550@mail.gmail.com> From: Artis Caune To: Lorenzo Perone Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: hartzell@alerce.com, Philipp Wuensche , FreeBSD Stable Mailing List , Kip Macy Subject: Re: loader not working with GPT and LOADER_ZFS_SUPPORT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 22:31:35 -0000 2009/5/28 Lorenzo Perone : > Hi, I'm a bit confused: > > I can't find this change (rev 185095) in the stable log, yet stable has some > other > recent changes related to the current posts (in turn commited also to > head)... > > http://svn.freebsd.org/viewvc/base/head/sys/boot/i386/libi386/biosdisk.c?view=log > http://svn.freebsd.org/viewvc/base/stable/7/sys/boot/i386/libi386/biosdisk.c?view=log > > maybe I'm misunderstanding how things eventually get ingto -stable, > however, which revision to use now for a peaceful world & boot? :) > > I'll go for the -head version for my next try.. It's not merged to stable yet. You should apply r185095 diff by hand. Just edit "sys/boot/i386/libi386/biosdisk.c" and change: --- sys/boot/i386/libi386/biosdisk.c (revision 192872) +++ sys/boot/i386/libi386/biosdisk.c (working copy) @@ -996,8 +996,10 @@ od->od_boff = gp->gp_start; out: - if (error) + if (error) { free(od->od_partitions); + od->od_flags &= ~BD_GPTOK; + } return (error); } @@ -1088,7 +1090,7 @@ switch(rw){ case F_READ: - DEBUG("read %d from %d to %p", blks, dblk, buf); + DEBUG("read %d from %lld to %p", blks, dblk, buf); if (blks && bd_read(od, dblk, blks, buf)) { DEBUG("read error"); -- Artis Caune Everything should be made as simple as possible, but not simpler.