summaryrefslogtreecommitdiff
path: root/common/cmd_sata.c
diff options
context:
space:
mode:
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>2009-01-26 08:45:14 -0500
committerWolfgang Denk <wd@denx.de>2009-01-27 23:03:57 +0100
commit50970839712dda35399e2fa83fe818df9354d618 (patch)
treefb9b8410b277709ba769d743467596704e5f675a /common/cmd_sata.c
parentb5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042 (diff)
downloadu-boot-imx-50970839712dda35399e2fa83fe818df9354d618.zip
u-boot-imx-50970839712dda35399e2fa83fe818df9354d618.tar.gz
u-boot-imx-50970839712dda35399e2fa83fe818df9354d618.tar.bz2
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>
Diffstat (limited to 'common/cmd_sata.c')
0 files changed, 0 insertions, 0 deletions