2008-11-29 Robert Millan <rmh@aybabtu.com>

* disk/ata.c (grub_ata_pciinit): Handle errors rised by
        grub_ata_device_initialize() calls.
This commit is contained in:
robertmh 2008-11-29 21:05:59 +00:00
parent 0c5e79ab5f
commit 7fd0ee30f8
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-11-29 Robert Millan <rmh@aybabtu.com>
* disk/ata.c (grub_ata_pciinit): Handle errors rised by
grub_ata_device_initialize() calls.
2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
* fs/affs.c (grub_affs_iterate_dir): Return failure when directory

View file

@ -541,7 +541,25 @@ grub_ata_pciinit (int bus, int device, int func,
if (rega && regb)
{
grub_ata_device_initialize (controller * 2 + i, 0, rega, regb);
/* Most errors rised by grub_ata_device_initialize() are harmless.
They just indicate this particular drive is not responding, most
likely because it doesn't exist. We might want to ignore specific
error types here, instead of printing them. */
if (grub_errno)
{
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
}
grub_ata_device_initialize (controller * 2 + i, 1, rega, regb);
/* Likewise. */
if (grub_errno)
{
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
}
}
}