]> git.sur5r.net Git - u-boot/commit
cmd: gpt: solve issue for swap and rename command
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 18 Oct 2017 13:11:08 +0000 (15:11 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 23 Oct 2017 21:28:11 +0000 (17:28 -0400)
commit3a2605fa875bc02962d62b5a21c795640621bf45
tree86d87bda4b5945780c8d06ebc700c23a759c5aaf
parent0cf02ff612c05800cb65fb496ac55454c36df64b
cmd: gpt: solve issue for swap and rename command

don't use prettyprint_part_size() in create_gpt_partitions_list()
that avoid to align offset and size to 1 MiB and increase precision for
start and size.
This patch avoid the risk to change partition size and lost data during
rename or swap.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
cmd/gpt.c
test/py/tests/test_gpt.py