platform_system_core/fs_mgr/liblp
David Anderson 88e36c1514 Fix double-accounting bug in liblp.
When flashing in fastbootd, we create a new MetadataBuilder using the
given super_empty.img and attempt to import the existing partition
table. This will fail if there is some incompatibility in the partition
layout or partition quotas.

This import code was accidentally double-accounting partitions when
determining if they could fit within the group quota, preventing
"fastboot flashall" once partitions reached a certain size.

Bug: 126930319
Test: liblp_test gtest
Change-Id: I89a69cba110b62719197c9a4885cfc5bcf8f009f
2019-03-01 16:17:27 -08:00
..
include/liblp Fix double-accounting bug in liblp. 2019-03-01 16:17:27 -08:00
Android.bp liblp: Enable building on Windows. 2018-11-19 16:20:51 -08:00
builder.cpp Fix double-accounting bug in liblp. 2019-03-01 16:17:27 -08:00
builder_test.cpp Fix double-accounting bug in liblp. 2019-03-01 16:17:27 -08:00
images.cpp fastboot: Warn when flashing dynamic partitions in the bootloader. 2018-11-20 12:10:16 -08:00
images.h liblp: Split super.img for retrofit devices. 2018-11-08 14:19:42 -08:00
io_test.cpp liblp: Modify NewForUpdate to accomodate two super partitions. 2018-11-21 17:36:28 +00:00
partition_opener.cpp liblp: Enable building on Windows. 2018-11-19 16:20:51 -08:00
reader.cpp Fixed a few minor nits in liblp 2019-01-10 13:36:59 -08:00
reader.h liblp: Allow automatic slot suffixing of partition names. 2018-11-08 09:51:03 -08:00
test_partition_opener.cpp liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00
test_partition_opener.h liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00
utility.cpp liblp: BLKROSET 0 prior to FlashPartitionTable 2019-01-09 16:20:33 -08:00
utility.h liblp: BLKROSET 0 prior to FlashPartitionTable 2019-01-09 16:20:33 -08:00
utility_test.cpp liblp: Allow automatic slot suffixing of partition names. 2018-11-08 09:51:03 -08:00
writer.cpp Merge "Fixed a few minor nits in liblp" 2019-01-20 07:55:47 +00:00
writer.h liblp: Add an abstraction layer for opening partitions. 2018-10-24 14:18:38 -07:00