New API call isoburn_igopt_set_tail_blocks()
This commit is contained in:
@ -532,6 +532,7 @@ int isoburn_prepare_disc_aux(struct burn_drive *in_d, struct burn_drive *out_d,
|
||||
iso_write_opts_set_part_offset(wopts, opts->partition_offset,
|
||||
opts->partition_secs_per_head,
|
||||
opts->partition_heads_per_cyl);
|
||||
iso_write_opts_set_tail_blocks(wopts, opts->tail_blocks);
|
||||
|
||||
ret = iso_image_create_burn_source(in_o->image, wopts, &wsrc);
|
||||
if (ret < 0) {
|
||||
@ -931,6 +932,7 @@ int isoburn_igopt_new(struct isoburn_imgen_opts **new_o, int flag)
|
||||
o->vol_expiration_time= 0;
|
||||
o->vol_effective_time= 0;
|
||||
o->libjte_handle= NULL;
|
||||
o->tail_blocks= 0;
|
||||
return(1);
|
||||
}
|
||||
|
||||
@ -1248,3 +1250,18 @@ int isoburn_igopt_detach_jte(struct isoburn_imgen_opts *opts,
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
int isoburn_igopt_set_tail_blocks(struct isoburn_imgen_opts *opts,
|
||||
uint32_t num_blocks)
|
||||
{
|
||||
opts->tail_blocks = num_blocks;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int isoburn_igopt_get_tail_blocks(struct isoburn_imgen_opts *opts,
|
||||
uint32_t *num_blocks)
|
||||
{
|
||||
*num_blocks = opts->tail_blocks;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user