commit | 993e0bf7bdbc72919b5a227348f5cdf0e54d7257 | [log] [tgz] |
---|---|---|
author | Mauricio Faria de Oliveira <[email protected]> | Wed Feb 12 10:23:34 2025 -0300 |
committer | Chromeos LUCI <[email protected]> | Fri Feb 14 10:33:01 2025 -0800 |
tree | c31e0bed07c74a83277f8aaa4e1f7222200a6286 | |
parent | 3a37ae87f637c1d7fbb12924e4cd12d6124b793e [diff] |
cgpt: create: calculate Last Usable LBA in DriveLastUsableLBA() We'll need the Last Usable LBA elsewhere, so move this into a function. BUG=none TEST=Create GPT with `cgpt create [ -D $SIZE ] $DEV` and check for same Last Usable LBA with `cgpt show [ -D $SIZE ]-v $DEV | grep 'Last LBA:'` before/after changes. BRANCH=none Change-Id: I82e56b54bbbb676dd83c7eae27566072f80403d4 Signed-off-by: Mauricio Faria de Oliveira <[email protected]> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/6258635 Commit-Queue: Jakub "Kuba" Czapiga <[email protected]> Reviewed-by: Jakub "Kuba" Czapiga <[email protected]> Reviewed-by: Tomasz Michalec <[email protected]>