Improved messages at the end of partially failed -extract runs
This commit is contained in:
@ -486,7 +486,7 @@ int Xorriso_option_external_filter(struct XorrisO *xorriso,
|
||||
int Xorriso_option_extract(struct XorrisO *xorriso, char *iso_path,
|
||||
char *disk_path, int flag)
|
||||
{
|
||||
int ret;
|
||||
int ret, problem_count;
|
||||
char eff_origin[SfileadrL], eff_dest[SfileadrL], *ipth, *eopt[1], *edpt[1];
|
||||
|
||||
if(xorriso->allow_restore <= 0) {
|
||||
@ -516,12 +516,13 @@ int Xorriso_option_extract(struct XorrisO *xorriso, char *iso_path,
|
||||
|
||||
eopt[0]= eff_origin;
|
||||
edpt[0]= eff_dest;
|
||||
ret= Xorriso_restore_sorted(xorriso, 1, eopt, edpt, (flag & 32 ? 33 : 0));
|
||||
ret= Xorriso_restore_sorted(xorriso, 1, eopt, edpt, &problem_count,
|
||||
(flag & 32 ? 33 : 0));
|
||||
|
||||
if(!(flag&2))
|
||||
Xorriso_pacifier_callback(xorriso, "files restored",xorriso->pacifier_count,
|
||||
xorriso->pacifier_total, "", 1|4);
|
||||
if(ret<=0)
|
||||
if(ret <= 0 || problem_count > 0)
|
||||
goto ex;
|
||||
|
||||
if(!(flag&1)) {
|
||||
@ -1346,7 +1347,7 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id",
|
||||
" Load a particular (outdated) ISO image from a -dev or",
|
||||
" -indev which hosts more than one session.",
|
||||
" -displacement [-]lba",
|
||||
" -displacement [-]block_address",
|
||||
" When loading ISO tree or reading data files compensate a",
|
||||
" displacement versus the start address for which the image",
|
||||
" was prepared.",
|
||||
|
Reference in New Issue
Block a user