Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
Switch branch/tag
  • xcap-capability-linux
  • block
  • partitions
  • efi.c
Find file BlameHistoryPermalink
  • Davidlohr Bueso's avatar
    partitions/efi: loosen check fot pmbr size in lba · 6b02fa59
    Davidlohr Bueso authored Sep 13, 2013
    Matt found that commit 27a7c642 ("partitions/efi: account for pmbr
    size in lba") caused his GPT formatted eMMC device not to boot.  The
    reason is that this commit enforced Linux to always check the lesser of
    the whole disk or 2Tib for the pMBR size in LBA.  While most disk
    partitioning tools out there create a pMBR with these characteristics,
    Microsoft does not, as it always sets the entry to the maximum 32-bit
    limitation - even though a drive may be smaller than that[1].
    
    Loosen this check and only verify that the size is either the whole disk
    or 0xFFFFFFFF.  No tool in its right mind would set it to any value
    other than these.
    
    [1] http://thestarman.pcministry.com/asm/mbr/GPT.htm#GPTPT
    
    
    
    Reported-and-tested-by: default avatarMatt Porter <matt.porter@linaro.org>
    Signed-off-by: default avatarDavidlohr Bueso <davidlohr@hp.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    6b02fa59