diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-08-02 19:20:58 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-02 19:20:58 +0000 |
commit | 1b184b4451cc991893dbbf16c1f610329448c0ff (patch) | |
tree | 81c4c6feeeccaf14664c2493cb77e9367bba44b0 | |
parent | 604b95c65354e33f7b262c2f644762389fa048f9 (diff) | |
parent | 28915829cfa54fc75a41ba7de69987545fcd8ea3 (diff) | |
download | extras-1b184b4451cc991893dbbf16c1f610329448c0ff.tar.gz |
Merge "lpmake: Pass the block size to MetadataBuilder."
-rw-r--r-- | partition_tools/lpmake.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/partition_tools/lpmake.cc b/partition_tools/lpmake.cc index 493e4118..8b0dfad1 100644 --- a/partition_tools/lpmake.cc +++ b/partition_tools/lpmake.cc @@ -188,7 +188,9 @@ int main(int argc, char* argv[]) { return EX_USAGE; } - BlockDeviceInfo device_info(blockdevice_size, alignment, alignment_offset); + // Note that we take the block_size to mean both the logical block size and + // the block size for libsparse. + BlockDeviceInfo device_info(blockdevice_size, alignment, alignment_offset, block_size); std::unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(device_info, metadata_size, metadata_slots); |