From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Delaunay Date: Mon, 16 Oct 2017 18:17:30 +0200 Subject: [U-Boot] [PATCH v2 0/5] solve issues in gpt management Message-ID: <1508170655-17707-1-git-send-email-patrick.delaunay@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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