From afb10aac3b254569fb9979457e7813d4949b0dcc Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 25 Dec 2016 10:05:26 +0100 Subject: [PATCH] Claiming full output size in first PVD if partition offset is non-zero --- libisofs/eltorito.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index db28b7c..b4ed22a 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -1505,11 +1505,18 @@ int eltorito_writer_create(Ecma119Image *target) target->catalog->bootimages[idx]->appended_start; target->boot_intvl_size[idx] = target->catalog->bootimages[idx]->appended_size; - if (((target->system_area_options >> 2) & 0x3f) == 0 && - (target->system_area_options & 3) == 1) { + + /* >>> ??? Why only with appended partition as El Torito image ? + Can this be used in all cases of appended partitions ? + */ + if ((((target->system_area_options >> 2) & 0x3f) == 0 && + (target->system_area_options & 3) == 1) || + target->opts->partition_offset > 0) { + /* Protective MBR || partition offset */ /* ISO will not be a partition. It can span the whole image. */ target->pvd_size_is_total_size = 1; } + continue; }