]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-02-07 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Thu, 7 Feb 2008 12:46:45 +0000 (12:46 +0000)
committerrobertmh <robertmh@localhost>
Thu, 7 Feb 2008 12:46:45 +0000 (12:46 +0000)
        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.

ChangeLog
disk/raid.c

index d826595ce2b8c55b69c2694c8f2ef873b268564f..5904dd9938ecf887a02d08a3a36863c6c4b07f62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index d5015e047e4585c905c4cbc13408388c0a85b628..db7bb98d27fba8e26a7bbdc729f04ef5778d8f60 100644 (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)