pmt: Improve libpartition_map types and some functions.

- Add new operators to Map_t.
 - Add new flags to info function.
 - Move some local pmt function(s) to libhelper.
 - Etc...
This commit is contained in:
2025-09-07 11:56:12 +03:00
parent 1984825dec
commit 77760bd1d4
8 changed files with 51 additions and 21 deletions

View File

@@ -370,7 +370,7 @@ bool basic_partition_map_builder::doForPartitionList(
for (const auto &partition : partitions) {
if (!hasPartition(partition))
throw Error("Couldn't find partition: %s", partition.data());
if (!func(partition, {sizeOf(partition), isLogical(partition)})) {
if (!func(partition, _current_map[partition])) {
err = true;
LOGN(MAP, ERROR) << "Failed progress for " << partition << " partition."
<< std::endl;