Image size tolerance of 300 kB when recognizing genisoimage -B "..."

This commit is contained in:
Thomas Schmitt 2016-02-27 17:00:24 +00:00
parent 5df9333c8f
commit 07da1ea417
2 changed files with 4 additions and 3 deletions

View File

@ -2164,8 +2164,9 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
start_cyl= 0xffffffff;
sscanf(contentpt, "%lu 0x%lx 0x%lx %lu %lu",
&partno, &id_tag, &perms, &start_cyl, &num_blocks);
if(partno > 0 && partno < 9 && start_cyl == 0 && num_blocks == img_blocks
&& ((partno == 1 && id_tag == 4) || (partno > 1 && id_tag == 2)))
if(partno > 0 && partno < 9 && start_cyl == 0 &&
num_blocks >= img_blocks - 600 && num_blocks <= img_blocks &&
((partno == 1 && id_tag == 4) || (partno > 1 && id_tag == 2)))
full_sparc_part|= (1 << (partno - 1));
} else if(strcmp(name, "PALO header version:") == 0) {

View File

@ -1 +1 @@
#define Xorriso_timestamP "2016.02.07.194339"
#define Xorriso_timestamP "2016.02.27.170008"