commit | 5095d8942541c4750fac8190efaa940e2c8f59b8 | [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 | 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