All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] grub-extras/lua: add fs label to grub.enum_device
Date: Fri, 27 Feb 2015 13:28:00 +0100	[thread overview]
Message-ID: <54F062D0.6060007@gmail.com> (raw)
In-Reply-To: <CAA91j0WpL3WUvu3gfiu=qZYrn3v08Mk=VvvMY1A9K3nS0FqMEA@mail.gmail.com>

On 27.02.2015 13:06, Andrei Borzenkov wrote:
> On Fri, Feb 27, 2015 at 2:56 PM, Vladimir 'φ-coder/phcoder' Serbinenko
> <phcoder@gmail.com> wrote:
>> On 27.02.2015 12:47, Fajar A. Nugraha wrote:
>>>
>>> +  lua_pushstring (state, label);
>>
>> What happens if label is NULL?
>>
>
> In all cases if grub could mount filesystem it returns strdup(label).
> Is it possible that mount fails without setting grub_errno? If yes, it
> is probably a bug.
>
Nope. If filesystem has no label (rather than just empty label), it will 
have *label == NULL and return no error which is correct. Same for UUID. 
So unless lua_pushstring has special handling for NULL, this code needs 
to be fixed.
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>



  reply	other threads:[~2015-02-27 12:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 11:47 [PATCH] grub-extras/lua: add fs label to grub.enum_device Fajar A. Nugraha
2015-02-27 11:56 ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-02-27 12:04   ` Fajar A. Nugraha
2015-02-27 12:06   ` Andrei Borzenkov
2015-02-27 12:28     ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2015-02-27 12:40       ` Fajar A. Nugraha
2015-02-27 12:42         ` Vladimir 'phcoder' Serbinenko
2015-02-27 12:48           ` Fajar A. Nugraha
2015-02-27 12:50             ` Vladimir 'phcoder' Serbinenko
2015-02-27 14:15       ` Andrei Borzenkov
2015-02-27 14:33         ` 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=54F062D0.6060007@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 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.