Ability to emulate a featured bug with mkisofs -C : read 16 block too early

This commit is contained in:
2008-07-17 11:07:42 +00:00
parent 4088bf38a6
commit 58ba5aeff6
3 changed files with 21 additions and 5 deletions

View File

@ -1427,6 +1427,8 @@ int isoburn_drive_set_msgs_submit(struct burn_drive *d,
}
/* @param flag bit0= with adr_mode 3: adr_value might be 16 blocks too high
*/
int isoburn_set_msc1(struct burn_drive *d, int adr_mode, char *adr_value,
int flag)
{
@ -1498,7 +1500,14 @@ not_found:;
} else if(adr_mode==3) {
o->fabricated_msc1= adr_num;
if((flag & 1) && o->fabricated_msc1 >= 16) {
/* MULTI : adr_num is possibly 16 blocks too high */;
ret= isoburn_read_iso_head(d, o->fabricated_msc1, &size,volid, 1|(1<<14));
if(ret==2)
o->fabricated_msc1-= 16;
}
} else if(adr_mode==4) {
/* search for volume id that is equal to adr_value */
best_lba= -1;