2008-02-07 Robert Millan <rmh@aybabtu.com>

Patch from Jeroen Dekkers.
        * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
        failure, since succesfuly reading all array members might not be
        required.
This commit is contained in:
robertmh 2008-02-07 12:46:45 +00:00
parent 9216e0e742
commit f2156fda69
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-02-07 Robert Millan <rmh@aybabtu.com>
Patch from Jeroen Dekkers.
* disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
failure, since succesfuly reading all array members might not be
required.
2008-02-06 Robert Millan <rmh@aybabtu.com>
* util/grub-probe.c (probe): Simplify partmap probing (with the

View file

@ -343,7 +343,10 @@ grub_raid_scan_device (const char *name)
err = grub_disk_read (disk, sector, 0, GRUB_RAID_SB_BYTES, (char *) &sb);
grub_disk_close (disk);
if (err)
return 0;
{
grub_errno = GRUB_ERR_NONE;
return 0;
}
/* Look whether there is a RAID superblock. */
if (sb.md_magic != GRUB_RAID_SB_MAGIC)