]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-05-31 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Sat, 31 May 2008 21:14:27 +0000 (21:14 +0000)
committerrobertmh <robertmh@localhost>
Sat, 31 May 2008 21:14:27 +0000 (21:14 +0000)
        * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
        floppies after everything else, to ensure floppy drive isn't accessed
        unnecessarily (patch from Bean).

ChangeLog
disk/i386/pc/biosdisk.c

index 5590227d0c5b5ce16bd84551a1949f0b225a2513..7276157a3ba73888fb4747861c7f4537a2b60d4a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-31  Robert Millan  <rmh@aybabtu.com>
+
+       * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
+       floppies after everything else, to ensure floppy drive isn't accessed
+       unnecessarily (patch from Bean).
+
 2008-05-31  Robert Millan  <rmh@aybabtu.com>
 
        * commands/search.c (search_label, search_fs_uuid, search_file): Do
index 094bde0aa517b2188f8c811f0442f026eef29170..c8fd1423bfc2a4d9727558152d750265aa352a37 100644 (file)
@@ -66,12 +66,6 @@ grub_biosdisk_iterate (int (*hook) (const char *name))
   int drive;
   int num_floppies;
 
-  /* For floppy disks, we can get the number safely.  */
-  num_floppies = grub_biosdisk_get_num_floppies ();
-  for (drive = 0; drive < num_floppies; drive++)
-    if (grub_biosdisk_call_hook (hook, drive))
-      return 1;
-  
   /* For hard disks, attempt to read the MBR.  */
   for (drive = 0x80; drive < 0x90; drive++)
     {
@@ -92,6 +86,12 @@ grub_biosdisk_iterate (int (*hook) (const char *name))
       return 1;
     }
 
+  /* For floppy disks, we can get the number safely.  */
+  num_floppies = grub_biosdisk_get_num_floppies ();
+  for (drive = 0; drive < num_floppies; drive++)
+    if (grub_biosdisk_call_hook (hook, drive))
+      return 1;
+
   return 0;
 }