[U-Boot] [PATCH v2 4/5] test/py: gpt: test start LBA for sub-command rename and swap

Stephen Warren swarren at wwwdotorg.org
Mon Oct 16 17:00:01 UTC 2017


On 10/16/2017 10:17 AM, Patrick Delaunay wrote:
> Add test of first and last LBA in gpt for rename and swap.
> Only the name is expected to change, so test 3 columns
> for part command
> 1: first LBA (start)
> 2: last LBA (end)
> 3: partition name
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> WARNING: the last LBA are invalid after rename
> 
> before rename
> 0x00000800  0x00000a00      ""
> 0x00001000  0x00001200      ""
> 
> after rename, the last LBA change
> => 7ff for first = invalid (<start)
> => 17ff for second (size increase)
> 
> 0x00000800	0x000007ff "first"
> 0x00001000	0x000017ff	"second"
> 
> the issue is corrected in next commit of the patchset

That issue should be described in the commit description, and also as a 
comment in the code.


More information about the U-Boot mailing list