Commit 4c456849 authored by Thomas Schmitt's avatar Thomas Schmitt

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

parent 2f24d82e
......@@ -2140,9 +2140,17 @@ static int Xorriso_scan_report_lines(struct XorrisO *xorriso,
if(high_block < num[1] && num[2] > 0 && !gpts[idx].is_gap) {
for(mbr_idx = 0; mbr_idx < mbr_count; mbr_idx++) {
if(mbrpts[mbr_idx].start_block == num[1] &&
mbrpts[mbr_idx].block_count == num[2])
if(mbrpts[mbr_idx].start_block == num[1]) {
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;
}
}
if(mbr_idx >= mbr_count) {
if(appended_as_gpt == 1) {
......
#define Xorriso_timestamP "2017.04.09.175231"
#define Xorriso_timestamP "2017.04.09.175347"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment