Took into respect possible truncate mode change by AAIP variable isofs.nt

This commit is contained in:
2015-09-25 17:15:41 +00:00
parent 60adbd88c3
commit 7bd6c0fe77
7 changed files with 125 additions and 79 deletions

View File

@ -223,6 +223,7 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
{
int ret, hret, not_writeable= 0, has_what, aquire_flag, load_lba, ext;
int lba, track, session, params_flag, adr_mode, read_ret, start_lba;
int truncate_mode;
uint32_t size, offst;
struct burn_drive_info *dinfo= NULL, *out_dinfo= NULL, *in_dinfo= NULL;
struct burn_drive *drive= NULL, *out_drive= NULL, *in_drive= NULL;
@ -587,6 +588,11 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
xorriso->in_sector_map= NULL;
Xorriso_set_image_severities(xorriso, 0);
/* Might have changed due to isofs.nt */
iso_image_get_truncate_mode(volset, &truncate_mode,
&(xorriso->file_name_limit));
Xorriso_process_msg_queues(xorriso,0);
Xorriso_update_volid(xorriso, 0);
strncpy(xorriso->application_id,
un0(iso_image_get_application_id(volset)), 128);