Re: [U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-08-03 Thread Michael Trimarchi
Hi On Aug 4, 2016 05:38, "Kever Yang" wrote: > > Hi Michael, > > Do you think this patch is necessary? > Yes, I have checked it and fix the regression. Today I will confirm on hot correctness but I think too Michael > Thanks, > -Kever > > On 07/29/2016 11:12 AM, Kever Yang wrote: >> >> The

Re: [U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-08-03 Thread Kever Yang
Hi Michael, Do you think this patch is necessary? Thanks, -Kever On 07/29/2016 11:12 AM, Kever Yang wrote: The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34 sectors. We can simply use 0 for siz

[U-Boot] [PATCH v2] cmd: gpt: fix the wrong size parse for the last partition

2016-07-28 Thread Kever Yang
The calculation of "dev_desc->lba - 34 - 1 - offset" is not correct for size '-', because both fist_usable_lba and last_usable_lba will remain 34 sectors. We can simply use 0 for size '-' because the part_efi module will decode the size and auto extend the size to maximum available size. Signed-