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

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Thu, 14 Oct 2010 18:47:55 -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:  1                 
  Platform:  All            |      Blocking:                    
----------------------------+-----------------------------------------------

Comment (by bonefish):

 Replying to [comment:21 bebop]:
 > Ok, so if the offsets are the same => previousSize == 0, is covered, the
 base case is covered, as stated above a sort is performed on the offsets,
 so the offsets are either equal or the current offset is strictly greater
 than the previous offset.
 >
 > Let the file systems take care of the partition being to short.

 Well, a file system can't do much about a too short partition. Access via
 a file descriptor to the partition is restricted to the partition's
 bounds. The only thing the file system could to is to open the parent
 partition or device, but that is strongly discouraged.

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

Other related posts: