public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 0/6] solve issues in gpt management
@ 2017-10-18 13:11 Patrick Delaunay
  2017-10-18 13:11 ` [U-Boot] [PATCH v3 1/6] test/py: gpt: copy persistent file Patrick Delaunay
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Patrick Delaunay @ 2017-10-18 13:11 UTC (permalink / raw)
  To: u-boot


in the last version v2017.09, I see some regression for the command

$> gpt write mmc 0 "name=test,start=0x4400,size=0"
$> gpt write mmc 0 "name=test,size=0"

I use sandbox python test to verify if this issue is also present in
v2017.11-rc1 and when I check the log tests, I detect a other issue
for the swap / rename feature : the offset and the size is always 1MB
align, that cause issue if the partition wasn't initially 1MB align.
And it is the case of the test (the size of partition change after the
command gpt rename or swap)

I propose this patch-set with:
- updated gpt test to highlight the issues
- my proposed correction for the 2 issues

tests are ok on v2017.11-rc1


Changes in v3:
- update after Stephen Warren comments
- Add partition name in persistent data and test them
- split test_gpt.py update: commit to add the test write command
- tests are now OK for each commit
- Indicate LBA end error for rename command in test/py and commit message

Changes in v2:
- Split test to functional change

Patrick Delaunay (6):
  test/py: gpt: copy persistent file
  test/py: gpt: add test for sub-command read and verify
  disk: efi: correct the overlap check on GPT header and PTE
  test/py: gpt: add test for sub-command write
  test/py: gpt: test start LBA for sub-command rename and swap
  cmd: gpt: solve issue for swap and rename command

 cmd/gpt.c                 | 12 +++----
 disk/part_efi.c           |  4 +--
 test/py/tests/test_gpt.py | 82 +++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 77 insertions(+), 21 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-10-24 18:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-18 13:11 [U-Boot] [PATCH v3 0/6] solve issues in gpt management Patrick Delaunay
2017-10-18 13:11 ` [U-Boot] [PATCH v3 1/6] test/py: gpt: copy persistent file Patrick Delaunay
2017-10-24 18:15   ` [U-Boot] [U-Boot,v3,1/6] " Tom Rini
2017-10-18 13:11 ` [U-Boot] [PATCH v3 2/6] test/py: gpt: add test for sub-command read and verify Patrick Delaunay
2017-10-24 18:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-10-18 13:11 ` [U-Boot] [PATCH v3 3/6] disk: efi: correct the overlap check on GPT header and PTE Patrick Delaunay
2017-10-24 18:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-10-18 13:11 ` [U-Boot] [PATCH v3 4/6] test/py: gpt: add test for sub-command write Patrick Delaunay
2017-10-24 18:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-10-18 13:11 ` [U-Boot] [PATCH v3 5/6] test/py: gpt: test start LBA for sub-command rename and swap Patrick Delaunay
2017-10-24 18:15   ` [U-Boot] [U-Boot, v3, " Tom Rini
2017-10-18 13:11 ` [U-Boot] [PATCH v3 6/6] cmd: gpt: solve issue for swap and rename command Patrick Delaunay
2017-10-18 17:13   ` Stephen Warren
2017-10-19 13:15     ` Patrick DELAUNAY
2017-10-24 18:15   ` [U-Boot] [U-Boot, v3, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox