From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Grub2 cannot find LVM volume groups with a dash (-) in the name
Date: Tue, 2 Sep 2008 00:14:05 +0200 [thread overview]
Message-ID: <20080901221405.GA11511@thorin> (raw)
In-Reply-To: <1219071926.4569.57.camel@fz.local>
On Mon, Aug 18, 2008 at 05:05:26PM +0200, Felix Zielcke wrote:
> + unsigned char i, j, k, l;
I think using unsigned chars to store "integers" is counter-intuitive, and in
some cases possibly dangerous (overflow).
> + grub_dev = xmalloc (strlen (os_dev) - strlen ("/dev/mapper/") + 1);
> +
> + j = sizeof ("/dev/mapper/") -1;
^
Missing space here :-)
> + for (i = 0, k = 0; i < l; i++)
> + {
> + grub_dev[k] = os_dev[j + i];
> + k++;
i already counts from 0 and increments by-one. Can it be used instead of k?
The rest of the code I mostly don't understand well. If you feel confident
that it's right, I suggest you check it in unless someone else also wants to
review it.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2008-09-01 22:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080808202337.3440.57502.reportbug@sylvester.jejik.com.jejik.com>
2008-08-09 10:26 ` Bug#494383: grub-pc: Grub2 cannot find LVM volume groups with a dash (-) in the name Felix Zielcke
2008-08-09 12:55 ` Felix Zielcke
2008-08-10 13:19 ` Sander Marechal
2008-08-11 16:18 ` [PATCH] " Felix Zielcke
2008-08-11 21:48 ` Sander Marechal
2008-08-14 17:34 ` Felix Zielcke
2008-08-14 18:03 ` Robert Millan
2008-08-14 19:32 ` Felix Zielcke
2008-08-14 20:38 ` Robert Millan
2008-08-14 21:15 ` Felix Zielcke
2008-08-18 15:05 ` Felix Zielcke
2008-08-18 15:16 ` Felix Zielcke
2008-09-01 7:08 ` Felix Zielcke
2008-09-01 22:14 ` Robert Millan [this message]
2008-09-01 22:46 ` Felix Zielcke
2008-09-02 8:28 ` Felix Zielcke
2008-09-02 14:59 ` Vesa Jääskeläinen
2008-09-02 15:59 ` Felix Zielcke
2008-09-02 16:21 ` Vesa Jääskeläinen
2008-09-04 19:56 ` Felix Zielcke
2008-09-02 13:37 ` Robert Millan
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=20080901221405.GA11511@thorin \
--to=rmh@aybabtu.com \
--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.