]> git.baikalelectronics.ru Git - kernel.git/commit
partitions/efi: account for pmbr size in lba
authorDavidlohr Bueso <davidlohr@hp.com>
Wed, 11 Sep 2013 21:25:00 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:59:17 +0000 (15:59 -0700)
commit87261aa16e20ea3778e5a8b74f219caf4c6d4051
tree19311875531607830f626c6ff7498969bccdc669
parentccda0f7f2192e61c5ee8429daa64d789501122ee
partitions/efi: account for pmbr size in lba

The partition that has the 0xEE (GPT protective), must have the size in
lba field set to the lesser of the size of the disk minus one or
0xFFFFFFFF for larger disks.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Reviewed-by: Karel Zak <kzak@redhat.com>
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/partitions/efi.c