[haiku-bugs] Re: [Haiku] #6487: [intel] overlapping partitions cannot be detected

  • From: "rainbow-demon" <trac@xxxxxxxxxxxx>
  • Date: Wed, 25 Aug 2010 22:07:09 -0000

#6487: [intel] overlapping partitions cannot be detected
----------------------------+-----------------------------------------------
  Reporter:  rainbow-demon  |         Owner:  marcusoverhagen   
      Type:  bug            |        Status:  new               
  Priority:  normal         |     Milestone:  R1                
 Component:  Drivers/Disk   |       Version:  R1/Development    
Resolution:                 |      Keywords:  intel, overlapping
Blocked By:                 |   Has a Patch:  0                 
  Platform:  All            |      Blocking:                    
----------------------------+-----------------------------------------------

Comment (by rainbow-demon):

 Replying to [comment:6 stippi]:
 > I've tried to explain this in my previous comment, detecting the file
 systems and using their information when parsing partitions is a layering
 violation. The (right now) clean design of the Haiku Disk Device API would
 have to be completely changed just to gracefully handle a situation that
 shouldn't happen in the first place, and which can be handled gracefully
 only in corner cases. Where do you stop? Suppose we introduce the layering
 violation to detect and allow your situation, then the next user comes
 along and says: Well, I have overlapping partitions, and even my file
 systems actually overlap according to the allocated size of each, but --
 by pure chance -- I don't have any data in the region where they overlap,
 can you please allow this? :-)

 I'm sorry :-) maybe overlapping can be simply ignored on this stage,
 leaving the final decision about accessing those partitions up to user (me
 ;-) ), warning him about a chance of fatal consequences for his data? Or
 at least show something in drivesetup - not just like my entire hard disk
 is empty and all data is lost (this scared me).

 Windows can read the partition table and mount sda1 and sda2 (sda4 has
 ext2 and cannot be mounted though it is seen in Disk Manager).

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

Other related posts: