commit | 2ca0700b450679ccf5855a48b2ffd7fc0a5a76ba | [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 | 3215fd93c7a335a7368020c9d60efb467d8c943a [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