All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Wilson <msw@amazon.com>
To: Teck Choon Giam <giamteckchoon@gmail.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 2 of 2] PV-GRUB: add support for btrfs
Date: Sat, 10 Mar 2012 12:00:57 -0800	[thread overview]
Message-ID: <20120310200055.GA816@US-SEA-R8XVZTX> (raw)
In-Reply-To: <CAEwRVpNTY_BT-Ok9_CySxen3tbkfpjGpRzz8Ah_rfqo2p7TDNw@mail.gmail.com>

On Sat, Mar 10, 2012 at 06:47:00AM -0800, Teck Choon Giam wrote:
>
> I tried to apply this in my xen-4.1-testing changeset
> 23264:3f158dd40b31 tree but failed.  See comment below.  Thanks.
> 
> On Fri, Mar 9, 2012 at 11:03 AM, Matt Wilson <msw@amazon.com> wrote:
> > This patch adds btrfs support to the GRUB tree used to build PV-GRUB.
> > The original patch is from Gentoo:
> > https://bugs.gentoo.org/show_bug.cgi?id=283637
> >
> > Signed-off-by: Matt Wilson <msw@amazon.com>
> >
> > +             if (! devwrite (*saved_sector - part_start, 1, stage2_buffer))
> 
> In stock grub-0.97 it is as below:
> 
> if (! devwrite (saved_sector - part_start, 1, stage2_buffer))
> 
> So my question is how you get it to apply in your tree without other
> patch to change the above from saved_sector to *saved_sector?
> 
> I have tried to grep saved_sector string in xen tree which I believe
> all other patches in grub.patches directory doesn't touch that line or
> am I totally wrong about this?

You're right, a hunk of this patch fails to apply. I missed the reject
file being created, and the main functionality appears to work. I will
rework the btrfs patch when I have some time to apply cleanly.  That
would also probably be a good time change the GRUB patching step to
abort loudly if a patch doesn't apply cleanly.

Thanks for catching this!

Matt

  reply	other threads:[~2012-03-10 20:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09  3:03 [PATCH 0 of 2] PV-GRUB: add support for ext4 and btrfs Matt Wilson
2012-03-09  3:03 ` [PATCH 1 of 2] PV-GRUB: add support for ext4 Matt Wilson
2012-03-09  3:03 ` [PATCH 2 of 2] PV-GRUB: add support for btrfs Matt Wilson
2012-03-10 14:47   ` Teck Choon Giam
2012-03-10 20:00     ` Matt Wilson [this message]
2012-03-10 20:13       ` Teck Choon Giam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120310200055.GA816@US-SEA-R8XVZTX \
    --to=msw@amazon.com \
    --cc=giamteckchoon@gmail.com \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.