]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
authorColin Watson <cjwatson@ubuntu.com>
Tue, 3 May 2011 17:03:05 +0000 (18:03 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 3 May 2011 17:03:05 +0000 (18:03 +0100)
GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
disk; otherwise grub_fs_probe will not fall back to the next
filesystem.
(grub_pxefs_open): Likewise, for consistency.
Reported and tested by: Ezekiel Grave.

ChangeLog
grub-core/fs/i386/pc/pxe.c

index 2aaeb862a70640bf091c5b1378f7d014fc9e5b3e..29cdc3e01a561df2c41931e4aac023c2879fa700 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-05-03  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
+       GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
+       disk; otherwise grub_fs_probe will not fall back to the next
+       filesystem.
+       (grub_pxefs_open): Likewise, for consistency.
+       Reported and tested by: Ezekiel Grave.
+
 2011-05-03  Colin Watson  <cjwatson@ubuntu.com>
 
        * tests/partmap_test.in: Don't hardcode path to parted.
index d6dc2c22d6a1c89223189e364dea74a157083c28..4304881fa47b9c6849436494ce9af002774849b4 100644 (file)
@@ -227,7 +227,7 @@ grub_pxefs_dir (grub_device_t device,
                __attribute__ ((unused)))
 {
   if (device->disk->dev->id != GRUB_DISK_DEVICE_PXE_ID)
-    return grub_error (GRUB_ERR_IO, "not a pxe disk");
+    return grub_error (GRUB_ERR_BAD_FS, "not a pxe disk");
 
   return GRUB_ERR_NONE;
 }
@@ -245,7 +245,7 @@ grub_pxefs_open (struct grub_file *file, const char *name)
   grub_file_t file_int, bufio;
 
   if (file->device->disk->dev->id != GRUB_DISK_DEVICE_PXE_ID)
-    return grub_error (GRUB_ERR_IO, "not a pxe disk");
+    return grub_error (GRUB_ERR_BAD_FS, "not a pxe disk");
 
   if (curr_file != 0)
     {