commit | a61ff299f15f70d5d8bffb7536dd6ab0839cd0f3 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Fri Oct 12 09:36:06 2018 -0700 |
committer | David Anderson <dvander@google.com> | Wed Oct 17 23:17:24 2018 +0000 |
tree | ff45b57510ce5ecd22373173ab9ab655b1bbf277 | |
parent | 937d6045136a1ada3d8c90ea4fb0b3106f2c8c39 [diff] |
liblp: Always align the first usable sector. Align the first usable sector to the logical block size, if no other alignment was specified. This fixes a bunch of warnings during certain gtests (ones with unaligned metadata sizes). The warnings were coming from MetadataBuilder::GrowPartition() which expects the first sector to always be block-aligned. Bug: 116802789 Test: liblp_test gtest Change-Id: I8dcf502aa4c2ba0674c5b4dcb77a274f300ff0a3