[U-Boot] [PATCH v3 0/6] solve issues in gpt management
Patrick Delaunay
patrick.delaunay at st.com
Wed Oct 18 13:11:02 UTC 2017
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
More information about the U-Boot
mailing list