commit | a1ee7acfc53419ff1b67bf39e407abb091dd8c31 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Mon Sep 24 08:07:35 2018 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Tue Sep 25 13:48:14 2018 -0700 |
tree | cdc5befba51b0c7015674a91f88ea4cf9c158a5f | |
parent | aec90858917381a6767d4054c837545fccce2559 [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