Skip to content
Snippets Groups Projects
Commit 50970839 authored by Richard Retanubun's avatar Richard Retanubun Committed by Wolfgang Denk
Browse files

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: default avatarRichard Retanubun <RichardRetanubun@RuggedCom.com>
parent b5b004ad
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment