diff options
| author | Gary Bisson <[email protected]> | 2020-08-27 10:51:14 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2020-09-01 14:47:43 +0200 |
| commit | 293a6dfeb96129abebf1ad927fa9aedf03a66d34 (patch) | |
| tree | e3ff28a24447b39d509a142ce126f2da6a39d153 /scripts | |
| parent | 64af06ce91d1b2f7819a273e56f7c41186a7588b (diff) | |
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: Gary Bisson <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
