From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Let user specify OpenBSD root device.
Date: Fri, 16 Oct 2009 13:00:31 +0200 [thread overview]
Message-ID: <4AD8524F.3090801@gmail.com> (raw)
In-Reply-To: <d7ead6de0908251739o5ef85d7bk75d5175669e44e77@mail.gmail.com>
Vladimir 'phcoder' Serbinenko wrote:
> On Wed, Aug 26, 2009 at 2:34 AM, Robert Millan<rmh@aybabtu.com> wrote:
>
>> On Tue, Aug 25, 2009 at 10:37:33PM +0200, Vladimir 'phcoder' Serbinenko wrote:
>>
>>> + if (cmd->state[OPENBSD_ROOT_ARG].set)
>>> + {
>>> + const char *arg = cmd->state[OPENBSD_ROOT_ARG].arg;
>>> + int unit, part;
>>> + if (*(arg++) != 'w' || *(arg++) != 'd')
>>> + return grub_error (GRUB_ERR_BAD_ARGUMENT,
>>> + "Only device specifications of form "
>>> + "wd<number><lowercase letter> are supported.");
>>> +
>>> + unit = grub_strtoul (arg, (char **) &arg, 10);
>>> + if (! (arg && *arg >= 'a' && *arg <= 'z'))
>>> + return grub_error (GRUB_ERR_BAD_ARGUMENT,
>>> + "Only device specifications of form "
>>> + "wd<number><letter> are supported.");
>>>
>> Looks like the first error string could be used for both cases, saving
>> a few bytes.
>>
>>
This was fixed. Can this patch be comitted before release to avoid
changing command syntax after release?
>> --
>> 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."
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>
>
>
>
--
Regards
Vladimir 'phcoder' Serbinenko
Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
next prev parent reply other threads:[~2009-10-16 11:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 20:37 [PATCH] Let user specify OpenBSD root device Vladimir 'phcoder' Serbinenko
2009-08-26 0:34 ` Robert Millan
2009-08-26 0:39 ` Vladimir 'phcoder' Serbinenko
2009-10-16 11:00 ` Vladimir 'phcoder' Serbinenko [this message]
2009-10-16 18:31 ` Robert Millan
2009-10-16 20:21 ` Vladimir '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=4AD8524F.3090801@gmail.com \
--to=phcoder@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox