commit | 50970839712dda35399e2fa83fe818df9354d618 | [log] [tgz] |
---|---|---|
author | Richard Retanubun <RichardRetanubun@RuggedCom.com> | Mon Jan 26 08:45:14 2009 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Tue Jan 27 23:03:57 2009 +0100 |
tree | fb9b8410b277709ba769d743467596704e5f675a | |
parent | b5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042 [diff] |
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>