From: "Szymon Janc" <szymon@janc.net.pl>
To: <grub-devel@gnu.org>
Subject: Re: [PATCH][UPDATED] support for xz compression format
Date: Tue, 16 Feb 2010 14:27:05 +0100 [thread overview]
Message-ID: <835ef9791a743a0bc02df541c23d7ae6@webmail.rootnode.net> (raw)
In-Reply-To: <4B7A99A4.6090806@gmail.com>
On Tue, 16 Feb 2010 14:12:04 +0100 Vladimir 'φ-coder/phcoder' Serbinenko
<phcoder@gmail.com> wrote
> First of all: could you use unified diff? (-u option)
Sure, will use that in future.
> grub2-1.98~experimental.20100120/conf/xzembed.rmk
> I don't see a need for either separate .rmk or separate module
>
> + static grub_uint8_t inbuf[XZBUFSIZ];
> + static grub_uint8_t outbuf[XZBUFSIZ];
> Avoid static variables. It will fail if user e.g. mounts xz file as a
> loopback then opens xz'ed file on this loopback. Just put buffers in
> grub_xzio
> + if (! file)
> + {
> + grub_error (GRUB_ERR_OUT_OF_MEMORY, "out of memory");
> + return 0;
> grub_error is already issued by grub_malloc, no need to put the same
> code here.
I think You have reviewed old patch, not the updated one :-)
--
Szymon Janc
next prev parent reply other threads:[~2010-02-16 13:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 21:01 [PATCH][UPDATED] support for xz compression format Szymon Janc
2010-02-16 13:12 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-02-16 13:27 ` Szymon Janc [this message]
2010-02-16 13:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-02-16 18:58 ` Szymon Janc
2010-02-16 21:11 ` richardvoigt
2010-02-16 21:28 ` Seth Goldberg
2010-02-16 21:46 ` richardvoigt
2010-02-16 22:04 ` Szymon Janc
2010-02-16 22:18 ` Vladimir 'φ-coder/phcoder' Serbinenko
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=835ef9791a743a0bc02df541c23d7ae6@webmail.rootnode.net \
--to=szymon@janc.net.pl \
--cc=grub-devel@gnu.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.