Restricted volume size of PVD with non-zero partition offset to filesystem size even if the first PVD claims the whole output size

This commit is contained in:
Thomas Schmitt 2016-12-25 10:00:07 +01:00
parent 8ec75eea6a
commit 76181d0aa3

View File

@ -1417,6 +1417,7 @@ int write_head_part2(Ecma119Image *target, int *write_count, int flag)
target->partiton_offset from any LBA pointer. target->partiton_offset from any LBA pointer.
*/ */
target->eff_partition_offset = target->opts->partition_offset; target->eff_partition_offset = target->opts->partition_offset;
target->pvd_size_is_total_size = 0;
for (i = 0; i < (int) target->nwriters; ++i) { for (i = 0; i < (int) target->nwriters; ++i) {
writer = target->writers[i]; writer = target->writers[i];
/* Not all writers have an entry in the partion volume descriptor set. /* Not all writers have an entry in the partion volume descriptor set.