Skip to content

Commit

Permalink
gpt: total sectors should be last + first_usable_lba
Browse files Browse the repository at this point in the history
As counting for last_usable_lba starts after first_usable_lba.

Signed-off-by: Daniel Kutik <[email protected]>
  • Loading branch information
enggmind authored and danielkutik committed Sep 26, 2023
1 parent 356ab5e commit 19e7c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edlclient/Library/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class partf:
if pa.type == "EFI_UNUSED":
continue
self.partentries[pa.name]=pa
self.totalsectors = self.header.last_usable_lba + 34
self.totalsectors = self.header.last_usable_lba + self.header.first_usable_lba
return True

def print(self):
Expand Down

0 comments on commit 19e7c5f

Please sign in to comment.