]> git.sur5r.net Git - u-boot/commit
part_efi: Fix partition size calculation due to inclusive ending LBA.
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>
Mon, 26 Jan 2009 13:45:14 +0000 (08:45 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 27 Jan 2009 22:03:57 +0000 (23:03 +0100)
commit50970839712dda35399e2fa83fe818df9354d618
treefb9b8410b277709ba769d743467596704e5f675a
parentb5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042
part_efi: Fix partition size calculation due to inclusive ending LBA.

The ending LBA is inclusive. Hence, the partition size should be
((ending-LBA + 1) - starting-LBA) to get the proper partition size.

This is confirmed against the results from the parted tool.
(e.g. use parted /dev/sda -s unit S print) and observe the size.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
disk/part_efi.c