All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/5] solve issues in gpt management
@ 2017-10-16 16:17 Patrick Delaunay
  2017-10-16 16:17 ` [U-Boot] [PATCH v2 1/5] test/py: gpt: copy persistent file Patrick Delaunay
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Patrick Delaunay @ 2017-10-16 16:17 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


Changes in v2:
- Split test to functional change

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

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

-- 
2.7.4

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

end of thread, other threads:[~2017-10-22 14:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16 16:17 [U-Boot] [PATCH v2 0/5] solve issues in gpt management Patrick Delaunay
2017-10-16 16:17 ` [U-Boot] [PATCH v2 1/5] test/py: gpt: copy persistent file Patrick Delaunay
2017-10-16 16:47   ` Stephen Warren
2017-10-16 16:17 ` [U-Boot] [PATCH v2 2/5] test/py: gpt: add test for sub-command read/verify/write Patrick Delaunay
2017-10-16 16:56   ` Stephen Warren
2017-10-16 16:17 ` [U-Boot] [PATCH v2 3/5] disk: efi: correct the overlap check on GPT header and PTE Patrick Delaunay
2017-10-22 14:34   ` Simon Glass
2017-10-16 16:17 ` [U-Boot] [PATCH v2 4/5] test/py: gpt: test start LBA for sub-command rename and swap Patrick Delaunay
2017-10-16 17:00   ` Stephen Warren
2017-10-16 16:17 ` [U-Boot] [PATCH v2 5/5] cmd: gpt: solve issue for swap Patrick Delaunay
2017-10-22 14:34   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.