]> git.baikalelectronics.ru Git - uboot.git/commit
disk: part: scan the disk if the part_type is unknown
authorKever Yang <kever.yang@rock-chips.com>
Sat, 10 Feb 2018 09:55:37 +0000 (17:55 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 14 Mar 2018 01:46:05 +0000 (21:46 -0400)
commit3f1486aed0c0e1c4a63960d6e1db7474b3a64115
treeb1bd452a3073a439f12822ec288487ad9953153e
parent94906c6df33de8bb816e8f40d557f0641e0d669b
disk: part: scan the disk if the part_type is unknown

If a DUT do not have partition table, and we write one with 'gpt write'
cmd, we should able to list the partition with 'part list' cmd.
It's reasonable to scan the disk again if the initial part_type is
unknown in case we just write a new one into disk.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
disk/part.c