Hi, As pointed out in emails on the threads [U-Boot] [RFC PATCH] cmd: gpt: add - partition size parsing [U-Boot] [PATCH] cmd: gpt: fix the wrong size parse for the last partition
it makes no sense to replicate the available size computation from part_efi.c into gpt.c. Furthermore the replication was incorrect and caused a regression, so that gpt write with a autosized partition did actually fail. Seeing that Michaels RFC patch was actually made up because gpt verify, which compares written gpt table to the table environment variable, failed when using size=- for the last partition I added patch 2 of this series. This simply disables the size check on verification, if the gpt table in environment does not specify a size for a partition. A verification of the computed size is not benefitial at all. Regards, Julian Julian Scheel (2): Revert "cmd: gpt: add - partition size parsing" disk: part_efi: Omit size on verify for partitions without size cmd/gpt.c | 13 ++----------- disk/part_efi.c | 3 ++- 2 files changed, 4 insertions(+), 12 deletions(-) -- 2.9.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot