libefi: add efi_reserved_sectors()
We have GPT partition handling code in few places where we also need to consider reserved partition size in sectors. Provide efi_reserved_sectors() in libefi to return the number of sectors needed for reserved partition.
Testing done: used updated format command with 512B and 4kn sector disks.
Updated by Electric Monk over 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 62ce8e2e52946c2ebc855b02452650365c19eafc Author: Toomas Soome <email@example.com> Date: 2019-11-21T06:29:55.000Z 12003 libefi: add efi_reserved_sectors() Reviewed by: John Levon <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>