[haiku-bugs] Re: [Haiku] #8990: intel partiton addon allows creating partitions > 2TB (easy)

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 26 Jan 2015 13:57:57 -0000

#8990: intel partiton addon allows creating partitions > 2TB (easy)
------------------------------------------+----------------------------
   Reporter:  luroh                       |      Owner:  bonefish
       Type:  bug                         |     Status:  new
   Priority:  normal                      |  Milestone:  R1
  Component:  Partitioning Systems/Intel  |    Version:  R1/Development
 Resolution:                              |   Keywords:
 Blocked By:                              |   Blocking:
Has a Patch:  1                           |   Platform:  All
------------------------------------------+----------------------------

Comment (by pulkomandy):

 In Haiku we have a simple policy: "don't hide the bugs, fix them". Here,
 the bug is in BlockSize, so ze need to fix BlockSize. We should not try to
 avoid using it because it doesn't work.

 > AFAIK you need UEFI to boot from 4k disk, but that's not really
 important here. Besides, you could still use it as a secondary disk
 (assuming that there is no hardcoded sector size anywhere in the OS).
 Anyway, what I want to say is that what we do with disks with 4kB logical
 sectors is irrelevant in this discussion. However, when the kernel block
 device layer and its drivers expose such disk to the rest of the world
 (including MBR code) then it should be handled appropriately.

 Yes, it is a separate issue and first of all the problems with BlockSize
 and the missing offset check should be fixed. For the problem of 4K
 sectors we should make sure we support them in the whole stack, and also
 that our MBR is interoperable with other systems handling it (it seems
 Windows won't: systems up to Windows 7 only support disks less than 2TB in
 size, and Windows 8 needs EFI and does not use MBRs anymore - but Linux
 may support this in one way or another). I opened a separate ticket for
 this: #11796

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

Other related posts: