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:
parent
9216e0e742
commit
f2156fda69
2 changed files with 11 additions and 1 deletions
|
@ -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>
|
2008-02-06 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
* util/grub-probe.c (probe): Simplify partmap probing (with the
|
* util/grub-probe.c (probe): Simplify partmap probing (with the
|
||||||
|
|
|
@ -343,7 +343,10 @@ grub_raid_scan_device (const char *name)
|
||||||
err = grub_disk_read (disk, sector, 0, GRUB_RAID_SB_BYTES, (char *) &sb);
|
err = grub_disk_read (disk, sector, 0, GRUB_RAID_SB_BYTES, (char *) &sb);
|
||||||
grub_disk_close (disk);
|
grub_disk_close (disk);
|
||||||
if (err)
|
if (err)
|
||||||
return 0;
|
{
|
||||||
|
grub_errno = GRUB_ERR_NONE;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Look whether there is a RAID superblock. */
|
/* Look whether there is a RAID superblock. */
|
||||||
if (sb.md_magic != GRUB_RAID_SB_MAGIC)
|
if (sb.md_magic != GRUB_RAID_SB_MAGIC)
|
||||||
|
|
Loading…
Reference in a new issue