[haiku-bugs] [Haiku] #10880: haiku_loader can hang for minutes when one or more BIOS reported drives are unreadable

  • From: "MasterM" <trac@xxxxxxxxxxxx>
  • Date: Wed, 28 May 2014 18:19:01 -0000

#10880: haiku_loader can hang for minutes when one or more BIOS reported drives 
are
unreadable
--------------------------------+------------------------------
 Reporter:  MasterM             |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  high                |    Milestone:  Unscheduled
Component:  System/Boot Loader  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  x86                 |
--------------------------------+------------------------------
 The problem is caused by find_unique_check_sums() that tries to avoid
 checksum clash for a maximum of 200 iterations. If one or more drives
 report read errors during that loop it can take a very long time to
 complete.

 Setting maximum tries to a low value would have a side effect of
 potentially increased change of collision. Better solution is to check if
 we can read from a drive before adding it to the block device list.

 I marked this issue as high priority because the boot loader is a critical
 part of an operating system. Feel free to change the priority to something
 lower if necessary.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10880>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: