With -report_system_area as_mkisofs ignore GPT if same start as MBR partition

This commit is contained in:
Thomas Schmitt 2017-04-09 19:54:12 +02:00
parent 2f24d82e3c
commit 4c45684912
2 changed files with 11 additions and 3 deletions

View File

@ -2140,10 +2140,18 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
if(high_block < num[1] && num[2] > 0 && !gpts[idx].is_gap) { if(high_block < num[1] && num[2] > 0 && !gpts[idx].is_gap) {
for(mbr_idx = 0; mbr_idx < mbr_count; mbr_idx++) { for(mbr_idx = 0; mbr_idx < mbr_count; mbr_idx++) {
if(mbrpts[mbr_idx].start_block == num[1] && if(mbrpts[mbr_idx].start_block == num[1]) {
mbrpts[mbr_idx].block_count == num[2]) if(mbrpts[mbr_idx].block_count != num[2] && !(flag & 1)) {
sprintf(xorriso->info_text,
"GPT partition %d has same start block as MBR partition %d but different block count (%.f <> %.f)",
idx + 1, mbr_idx + 1, num[2],
(double) mbrpts[mbr_idx].block_count);
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING",
0);
}
break; break;
} }
}
if(mbr_idx >= mbr_count) { if(mbr_idx >= mbr_count) {
if(appended_as_gpt == 1) { if(appended_as_gpt == 1) {
if(mkisofs) if(mkisofs)

View File

@ -1 +1 @@
#define Xorriso_timestamP "2017.04.09.175231" #define Xorriso_timestamP "2017.04.09.175347"