commit | 3adb966448a11e5799313d791808fee4b02af6e1 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Fri Oct 19 17:15:31 2018 -0700 |
committer | David Anderson <dvander@google.com> | Mon Oct 22 12:00:13 2018 -0700 |
tree | 4d1470d6d6fc41ef9e77a4592af87e9ff749b6dd | |
parent | 9ca7bb244963aba53f8949f84bbc7f6554e35b89 [diff] |
liblp: Move free-region calculation into a separate function. In preparation for supporting multiple block devices, this factors out the free-list calculation for resizing partitions. Additionally, it fixes a bug where space in between the first usable sector and the first extent wasn't added to the free list. Bug: 116802789 Test: liblp_test gtest Change-Id: I965760eef0176020e9a5691ce1be2c8b5e0c8bc8