commit | 87391664e342e9b84c548445d0914b59f24229c3 | [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 | 692049259c28c333c69ddd49913d28e205914499 [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