New -toc lines "ISO offers :" and "ISO loaded :"

This commit is contained in:
Thomas Schmitt 2020-12-07 19:42:46 +01:00
parent b3adff1daa
commit 3542e8af97
4 changed files with 30 additions and 1 deletions

View File

@ -168,6 +168,9 @@ int Xorriso_new(struct XorrisO ** xorriso,char *progname, int flag)
m->do_follow_mount= 1;
m->do_global_uid= 0;
m->global_uid= 0;
m->isofs_has_what= 0;
m->tree_loaded= 0;
m->rr_loaded= 0;
strcpy(m->volid, "ISOIMAGE");
m->volid_default= 1;
m->loaded_volid[0]= 0;

View File

@ -692,6 +692,10 @@ int Xorriso_aquire_drive(struct XorrisO *xorriso, char *adr, char *show_adr,
}
Xorriso_process_msg_queues(xorriso,0);
isoburn_ropt_get_size_what(ropts, &size, &has_what);
xorriso->isofs_has_what= has_what;
isoburn_ropt_get_tree_loaded(ropts, &(xorriso->tree_loaded),
&(xorriso->rr_loaded));
if(has_what & isoburn_ropt_has_el_torito) {
if(xorriso->boot_image_bin_path[0])
boot_fate= "replaced by new boot image";
@ -1279,6 +1283,20 @@ int Xorriso_toc(struct XorrisO *xorriso, int flag)
if(!(flag & 2))
Xorriso_show_boot_info(xorriso, 1 | (flag & 8) | ((flag & 1) << 1));
if(!(flag & 3)) {
sprintf(respt, "ISO offers :%s%s%s%s\n",
xorriso->isofs_has_what & 1 ? " Rock_Ridge" : "",
xorriso->isofs_has_what & 2 ? " Joliet" : "",
xorriso->isofs_has_what & 4 ? " ISO_9660_1999" : "",
xorriso->isofs_has_what & 7 ? "" : " Only_ECMA_119");
Xorriso_toc_line(xorriso, flag & 8);
sprintf(respt, "ISO loaded : %s\n",
xorriso->tree_loaded == 1 ? "Joliet" :
xorriso->tree_loaded == 2 ? "ISO_9660_1999" :
xorriso->rr_loaded > 0 ? "Rock_Ridge" : "Only_ECMA_119");
Xorriso_toc_line(xorriso, flag & 8);
}
disc= isoburn_toc_drive_get_disc(drive);
if(flag & 4)
sprintf(respt, "TOC layout : %3s , %9s , %10s\n",

View File

@ -241,6 +241,14 @@ struct XorrisO { /* the global context of xorriso */
int do_overwrite; /* 0=off, 1=on, 2=nondir */
int do_reassure; /* 0=off, 1=on, 2=tree */
int isofs_has_what; /* bit0= hasRR
bit1= hasJoliet
bit2= hasIso1999
bit3= hasElTorito
*/
int tree_loaded; /* 0= ISO 9660 , 1 = Joliet , 2 = ISO 9660:1999 */
int rr_loaded; /* 1= Rock Ridge information was used, 0= Not */
char volid[33];
int volid_default;
char loaded_volid[33];

View File

@ -1 +1 @@
#define Xorriso_timestamP "2020.12.07.183710"
#define Xorriso_timestamP "2020.12.07.184159"