Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NfYfA-0002z0-76 for mharc-grub-devel@gnu.org; Thu, 11 Feb 2010 08:00:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfYf8-0002xP-Gb for grub-devel@gnu.org; Thu, 11 Feb 2010 08:00:54 -0500 Received: from [199.232.76.173] (port=41089 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfYf7-0002wV-Lx for grub-devel@gnu.org; Thu, 11 Feb 2010 08:00:54 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfYf5-00024e-Tp for grub-devel@gnu.org; Thu, 11 Feb 2010 08:00:52 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:63950) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfYf5-00024K-8X for grub-devel@gnu.org; Thu, 11 Feb 2010 08:00:51 -0500 Received: by bwz19 with SMTP id 19so252260bwz.8 for ; Thu, 11 Feb 2010 05:00:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=XCjq/IAQf+7Vj3m2exumXhyhvOywDcja7wMaRsBCoaM=; b=hT76WPSo2zgRsRU1Y4lNKTL61VxRSpvdN6U2geq5Wn9d+PHccKEuNfFy16Ip0XQFAA 8SCnZhifciZerFXuZuQ9I5/mcNIed6fEBILr0Q75ter3RnKJgKUMKkLwJirJudfSp8UD g8ReESTzwIfmu6wM+1YbMo2tZNsJpp94ovkLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=coDRKs6kU/w6/Oe+LBr6wNDYM8LFoRbBCvIR5Mn5iJWa3qBr8X1+Ts5G8oyIKYaH+1 6VGGnVxnGyw/W79zK8TndCg2XEJ8MOCpyikkZ/LhdIvMHCBISRCrzAkVkSbs/R5dDFro iJTvfSj6bnjwDIdnZVsNp7Dxwk2NQ7XfTjNQE= MIME-Version: 1.0 Received: by 10.204.42.6 with SMTP id q6mr1176227bke.120.1265893250260; Thu, 11 Feb 2010 05:00:50 -0800 (PST) From: George Buranov Date: Thu, 11 Feb 2010 16:00:30 +0300 Message-ID: To: The development of GNU GRUB Content-Type: multipart/alternative; boundary=000325556c92815f91047f52bd33 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [patch] GRUB possible patches X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 13:00:54 -0000 --000325556c92815f91047f52bd33 Content-Type: text/plain; charset=ISO-8859-1 Hello eveybody. I am currently start investigation (and fixing the things that don't work for me =)) So, I got two for today, one is fix, and one is morelike a question, I am more than sure it's my mistake. What's the correct way of applying patches to grub2? Am I correct that all I need is to post the patch to this mailing list and than some guys are applying them?:) 1) IMHO that's clearly a bug. Actually, I am not sure how did it work before =) === modified file 'disk/efi/efidisk.c' --- disk/efi/efidisk.c 2010-01-20 08:12:47 +0000 +++ disk/efi/efidisk.c 2010-02-11 10:58:49 +0000 @@ -825,7 +825,7 @@ if (! disk) return 1; - if (disk->id == GRUB_DISK_DEVICE_EFIDISK_ID) + if (disk->dev && disk->dev->id == GRUB_DISK_DEVICE_EFIDISK_ID) { struct grub_efidisk_data *d; 2) That's more interesting. I nocticed that when I try to browse CD (ISO 9660 format) all files are ended with ";1". This basically crashed loading everything (including grub.cfg file). I fixed this by this stupid hack, but maybe somebody knows where is the clue? http://picasaweb.google.com/lh/photo/psaYCXsX_M77pdG4_qeFGw?feat=directlink === modified file 'fs/iso9660.c' --- fs/iso9660.c 2010-01-27 03:11:20 +0000 +++ fs/iso9660.c 2010-02-11 11:11:36 +0000 @@ -638,6 +638,9 @@ if (filename_alloc) grub_free (oldname); + int hookedFile = grub_strlen (filename); + filename[hookedFile - 2] = '\0'; + filename_alloc = 1; } Regards, Georgy --000325556c92815f91047f52bd33 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello eveybody.

I am currently start investigation (and fixing the t= hings that don't work for me =3D))

So, I got two for today, one = is fix, and one is morelike a question, I am more than sure it's my mis= take.

What's the correct way of applying patches to grub2? Am I correct t= hat all I need is to post the patch to this mailing list and than some guys= are applying them?:)

1) IMHO that's clearly a bug. Actually, I = am not sure how did it work before =3D)

=3D=3D=3D modified file 'disk/efi/efidisk.c'
--- disk/efi/efidisk.c=A0 2010-01-20 08:12:47 +0000
+++ disk/efi/efidisk= .c=A0 2010-02-11 10:58:49 +0000
@@ -825,7 +825,7 @@
=A0=A0=A0=A0=A0= =A0=A0=A0=A0 if (! disk)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 return 1;
=
-=A0=A0=A0=A0=A0=A0=A0=A0 if (disk->id =3D=3D GRUB_DISK_DEVICE_EFIDI= SK_ID)
+=A0=A0=A0=A0=A0=A0=A0=A0 if (disk->dev && disk->dev->id = =3D=3D GRUB_DISK_DEVICE_EFIDISK_ID)
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 {<= br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 struct grub_efidisk_data *d;
=
2) That's more interesting. I nocticed that when I try to browse CD= (ISO 9660 format) all files are ended with ";1". This basically = crashed loading everything (including grub.cfg file). I fixed this by this = stupid hack, but maybe somebody knows where is the clue?

http://picasaweb.google.com/lh/photo/psaYCXsX_M77pdG4_qe= FGw?feat=3Ddirectlink

=3D=3D=3D modified file 'fs/iso9660.c&= #39;
--- fs/iso9660.c=A0=A0=A0=A0=A0=A0=A0 2010-01-27 03:11:20 +0000
+++ fs/i= so9660.c=A0=A0=A0=A0=A0=A0=A0 2010-02-11 11:11:36 +0000
@@ -638,6 +638,9= @@
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if (filename_alloc)
=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 grub_free (oldname);

+=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0 int hookedFile =3D grub_strlen (filename);
+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 filename[hookedFile - 2] =3D '\0'= ;;
+
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 filename_alloc =3D 1;
= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 }


Regards,
Georgy
--000325556c92815f91047f52bd33--