diff options
author | David Anderson <dvander@google.com> | 2018-10-12 09:36:06 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2018-10-17 23:17:24 +0000 |
commit | 87391664e342e9b84c548445d0914b59f24229c3 (patch) | |
tree | ff45b57510ce5ecd22373173ab9ab655b1bbf277 /libcutils/sockets_unix.cpp | |
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
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions