grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ata.mod under qemu


From: Pavel Roskin
Subject: Re: [PATCH] ata.mod under qemu
Date: Wed, 20 May 2009 18:13:00 -0400

On Wed, 2009-05-20 at 23:40 +0200, Christian Franke wrote: 
> The attached patch should fix this. It should also prevents misleading 
> error messages if a device does not exist.
> 
> 2009-05-20  Christian Franke  <address@hidden>
> 
>       * disk/ata.c: (grub_ata_wait_not_busy): Add debug output of status
>       register.
>       (grub_ata_identify): Suppress error message if status register
>       is 0x00 after command failure.
>       (grub_device_initialize): Remove unsafe status register check.
>       Thanks to 'phcoder' for problem report and patch.
>       Prevent sign extension in debug message.

It helps detect CD-ROM under qemu.  But on the real hardware, it
introduces ghost drives.

Without the patch, I have (ata7) for the SATA hard drive.  With the
patch, I have (ata7) for the SATA hard drive, (ata6) for the SATA DVD-RW
and two bogus unreadable drives (ata0) and (ata1).

-- 
Regards,
Pavel Roskin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]