All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] mkdevicemap for Cygwin
Date: Thu, 6 Dec 2007 13:15:04 +0100	[thread overview]
Message-ID: <20071206121504.GF13758@thorin> (raw)
In-Reply-To: <473A0C32.5000001@t-online.de>

On Sun, Nov 18, 2007 at 07:40:15PM +0100, Christian Franke wrote:
>
> No, it did not work because check_device() returned 1 ("exists") on
> (*name == 0). This results in 8 bogus "(hd N)\t\n" lines and wrong N for
> the real devices.
>
> Yes, it would work now, because the patch also fixes this bug :-)

Ok, so in that case you don't need...

> +#ifndef __CYGWIN__
>  static void
>  get_ide_disk_name (char *name, int unit)
>  {
> @@ -213,6 +217,7 @@ get_ide_disk_name (char *name, int unit)
>    *name = 0;
>  #endif
>  }
> +#endif /* __CYGWIN__ */
>  
> [...]
> +#ifndef __CYGWIN__    
>    /* IDE disks.  */
>    for (i = 0; i < 8; i++)
>      {
> @@ -431,6 +440,7 @@ make_device_map (const char *device_map,
>  	  num_hd++;
>  	}
>      }
> +#endif /* __CYGWIN__ */

...because you already fixed the problem in:

> -  /* If DEVICE is empty, just return 1.  */
> +  /* If DEVICE is empty, just return error.  */
>    if (*device == 0)
> -    return 1;
> -  
> +    return 0;

  ?

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



  parent reply	other threads:[~2007-12-06 12:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-13 20:42 [PATCH] mkdevicemap for Cygwin Christian Franke
2007-11-18  6:24 ` Robert Millan
2007-11-18 18:40   ` Christian Franke
2007-11-18 11:30 ` Marco Gerards
2007-11-18 18:46   ` Christian Franke
2007-12-06 12:15 ` Robert Millan [this message]
2007-12-06 13:08   ` Christian Franke
2007-12-28 15:43   ` Christian Franke
2008-01-23 11:40     ` Marco Gerards
2008-01-23 11:45       ` Robert Millan
2008-01-23 12:22         ` Marco Gerards
2008-01-23 20:40           ` Christian Franke
2008-04-24 20:06             ` Marco Gerards
2008-05-05 21:26               ` Christian Franke

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=20071206121504.GF13758@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.