diff options
author | Mark Salyzyn <salyzyn@google.com> | 2018-09-24 08:07:35 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2018-09-25 13:48:14 -0700 |
commit | 5095d8942541c4750fac8190efaa940e2c8f59b8 (patch) | |
tree | cdc5befba51b0c7015674a91f88ea4cf9c158a5f /fastboot/device/variables.cpp | |
parent | c105f4b63afdac234c8682deca1028cf244f848b (diff) |
liblp: Add MetadataBuilder::UsedSpace()
MetadataBuilder::AllocatableSpace() represents the total space
available. Adding MetadataBuilder::UsedSpace() to represent the
space used by the existing set of partitions. This will allow a
caller to predict if a partition can be resized (Grown), or to
create a partition to use up the free space (i.e. scratch).
Test: gTest liblp.UseAllDiskSpace
Bug: 109821005
Change-Id: Iae487d869fe18310c76b48c4281f1d6c1ee333cd
Diffstat (limited to 'fastboot/device/variables.cpp')
0 files changed, 0 insertions, 0 deletions