commit | f04107fff85f63949336b2b3707e1f336452f0eb | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Wed Jun 19 19:01:14 2019 -0700 |
committer | David Anderson <dvander@google.com> | Wed Jun 19 19:23:55 2019 -0700 |
tree | 75d3e11c5280f4f1c5be4bf61bb8120ddaba33d5 | |
parent | f78b8a4f95babdb5e12ecf1f034ccdc0dc39f8f9 [diff] |
liblp: Handle invalid alignment offsets correctly. When stacking devices with dm-linear, it is possible to get a -1 alignment offset. In this case we should set alignment_offset to 0 rather than fail later trying to divide -1 by the sector size. Bug: 134536978 Test: manual test Change-Id: I3862fdda69531a3b230b7316707469a49ba871d6