commit | 11440493a797a8125355253d0391425a444006c0 | [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 | 5336d40ed4a33cf8650a579fe113d69415ccb687 [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