[haiku-bugs] Re: [Haiku] #6724: Creating a second active partition should unactive the first one

  • From: "bebop" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Dec 2010 03:09:19 -0000

#6724: Creating a second active partition should unactive the first one
--------------------------------------+------------------------------
  Reporter:  starsseed                |        Owner:  bebop
      Type:  bug                      |       Status:  assigned
  Priority:  normal                   |    Milestone:  R1
 Component:  Applications/DriveSetup  |      Version:  R1/Development
Resolution:                           |     Keywords:
Blocked By:                           |  Has a Patch:  0
  Platform:  x86                      |     Blocking:
--------------------------------------+------------------------------

Comment (by bebop):

 When the MBR was being written, the active partition was properly handled.
 The problem was that the partition_data was not being updated correctly.
 This means if one was to restart the computer the correct values for the
 active partition would be displayed.

 This patch is the quick and dirty fix to the problem. It sets all of the
 current primary partitions parameters to an empty string if the partition
 being created has the active flag set to true.

 This works as the intel disk system only uses the parameters string for
 the active partition. Any comments on how this should/could be handled are
 welcome.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6724#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: