Skip to content
Commit 293a6dfe authored by Gary Bisson's avatar Gary Bisson Committed by Marek Vasut
Browse files

fastboot: getvar: fix partition-size return value

The size returned by 'getvar partition-size' should be in bytes, not in
blocks as fastboot uses that value to generate empty partition when
running format [1].

Note that the function was already returning the proper size in bytes
for NAND devices (see struct part_info details).

[1]
https://android.googlesource.com/platform/system/core/+/refs/heads/android10-release/fastboot/fastboot.cpp#1500



Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
parent 64af06ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment