|
|
|
@ -472,6 +472,8 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
|
|
|
|
|
iso_write_opts_set_rockridge(wopts, opts->rockridge);
|
|
|
|
|
iso_write_opts_set_joliet(wopts, opts->joliet);
|
|
|
|
|
iso_write_opts_set_hfsplus(wopts, opts->hfsplus);
|
|
|
|
|
iso_write_opts_set_hfsp_block_size(wopts, opts->hfsp_block_size,
|
|
|
|
|
opts->apm_block_size);
|
|
|
|
|
iso_write_opts_set_fat(wopts, opts->fat);
|
|
|
|
|
iso_write_opts_set_iso1999(wopts, opts->iso1999);
|
|
|
|
|
iso_write_opts_set_hardlinks(wopts, opts->hardlinks);
|
|
|
|
@ -1095,6 +1097,8 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
|
|
|
|
|
o->appended_part_types[i]= 0;
|
|
|
|
|
}
|
|
|
|
|
memset(o->hfsp_serial_number, 0, 8);
|
|
|
|
|
o->hfsp_block_size= 0;
|
|
|
|
|
o->apm_block_size= 0;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1660,3 +1664,42 @@ int isoburn_igopt_get_hfsp_serial_number(struct isoburn_imgen_opts *opts,
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_set_hfsp_block_size(struct isoburn_imgen_opts *opts,
|
|
|
|
|
int hfsp_block_size, int apm_block_size)
|
|
|
|
|
{
|
|
|
|
|
char msg[80];
|
|
|
|
|
|
|
|
|
|
msg[0]= 0;
|
|
|
|
|
if(hfsp_block_size != -1) {
|
|
|
|
|
if(hfsp_block_size != 0 && hfsp_block_size != 512 &&
|
|
|
|
|
hfsp_block_size != 2048) {
|
|
|
|
|
sprintf(msg, "Not a supported HFS+ size (%d <-> 0, 512, 2048)",
|
|
|
|
|
hfsp_block_size);
|
|
|
|
|
isoburn_msgs_submit(NULL, 0x00060000, msg, 0, "FAILURE", 0);
|
|
|
|
|
}
|
|
|
|
|
opts->hfsp_block_size = hfsp_block_size;
|
|
|
|
|
}
|
|
|
|
|
if(apm_block_size != -1) {
|
|
|
|
|
if(apm_block_size != 0 && apm_block_size != 512 && apm_block_size != 2048) {
|
|
|
|
|
sprintf(msg, "Not a supported APM block size (%d <-> 0, 512, 2048)",
|
|
|
|
|
apm_block_size);
|
|
|
|
|
isoburn_msgs_submit(NULL, 0x00060000, msg, 0, "FAILURE", 0);
|
|
|
|
|
}
|
|
|
|
|
opts->apm_block_size = apm_block_size;
|
|
|
|
|
}
|
|
|
|
|
if(msg[0])
|
|
|
|
|
return(0);
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int isoburn_igopt_get_hfsp_block_size(struct isoburn_imgen_opts *opts,
|
|
|
|
|
int *hfsp_block_size, int *apm_block_size)
|
|
|
|
|
{
|
|
|
|
|
*hfsp_block_size= opts->hfsp_block_size;
|
|
|
|
|
*apm_block_size= opts->apm_block_size;
|
|
|
|
|
return(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|