All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] mkdevicemap for Cygwin
Date: Sun, 18 Nov 2007 19:40:15 +0100	[thread overview]
Message-ID: <4740870F.2020502@t-online.de> (raw)
In-Reply-To: <20071118062424.GC20719@thorin>

Robert Millan wrote:
> On Tue, Nov 13, 2007 at 09:42:26PM +0100, Christian Franke wrote:
>   
>> +#elif defined(__CYGWIN__)
>> +  /* Cygwin */
>> +  sprintf (name, "/dev/fd%d", unit);
>>     
>
> Cygwin has /dev now?  :-)
>
>   

At least since 2003.


>> +#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__ */
>>     
>
> Is the generic case (`*name = 0', then print that) good enough?
>
>   


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 :-)

Christian




  reply	other threads:[~2007-11-18 18:40 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 [this message]
2007-11-18 11:30 ` Marco Gerards
2007-11-18 18:46   ` Christian Franke
2007-12-06 12:15 ` Robert Millan
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=4740870F.2020502@t-online.de \
    --to=christian.franke@t-online.de \
    --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.