"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xorriso/opts_d_h.c" between
libisoburn-1.5.0.tar.gz and libisoburn-1.5.2.tar.gz

About: libisoburn is a frontend for the libraries libburn and libisofs which enables creation and expansion of ISO-9660 filesystems on all media and file types supported by libburn. It implements the API and command interpreter of program xorriso, and installs this program as small dynamically linked binary. xorriso is suitable for incremental data backup and for production of bootable ISO 9660 images. A statically linked version is available as GNU xorriso.

opts_d_h.c  (libisoburn-1.5.0):opts_d_h.c  (libisoburn-1.5.2)
skipping to change at line 252 skipping to change at line 252
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0); return(0);
} }
if(num == 0) if(num == 0)
displacement_sign= 0; displacement_sign= 0;
xorriso->displacement= num; xorriso->displacement= num;
xorriso->displacement_sign= displacement_sign; xorriso->displacement_sign= displacement_sign;
return(1); return(1);
} }
/* Command -drive_access "exclusive"|"shared":"readonly"|"unrestricted" */
int Xorriso_option_drive_access(struct XorrisO *xorriso, char *mode, int flag)
{
int l;
char *npt, *cpt;
npt= cpt= mode;
for(cpt= mode; npt != NULL; cpt= npt+1) {
npt= strchr(cpt, ':');
if(npt==NULL)
l= strlen(cpt);
else
l= npt - cpt;
if(l == 0 && mode[0] != 0)
goto unknown_mode;
if(strncmp(cpt, "shared", l) == 0 && l == 6) {
xorriso->drives_exclusive= 0;
} else if(strncmp(cpt, "exclusive", l) == 0 && l == 9) {
xorriso->drives_exclusive= 1;
} else if(strncmp(cpt, "readonly", l) == 0 && l == 8) {
xorriso->drives_access= 0;
} else if(strncmp(cpt, "unrestricted", l) == 0 && l == 12) {
xorriso->drives_access= 1;
} else {
unknown_mode:;
sprintf(xorriso->info_text, "-drive_access: unknown mode '");
if(l > 0 && l < SfileadrL)
strncat(xorriso->info_text, cpt, l);
strcat(xorriso->info_text, "'");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
return(0);
}
}
return(1);
}
/* Option -drive_class */ /* Option -drive_class */
int Xorriso_option_drive_class(struct XorrisO *xorriso, int Xorriso_option_drive_class(struct XorrisO *xorriso,
char *d_class, char *pattern, int flag) char *d_class, char *pattern, int flag)
{ {
int ret= 1; int ret= 1;
if(strcmp(d_class, "banned") == 0) { if(strcmp(d_class, "banned") == 0) {
ret= Xorriso_lst_new(&(xorriso->drive_blacklist), pattern, ret= Xorriso_lst_new(&(xorriso->drive_blacklist), pattern,
xorriso->drive_blacklist, 1); xorriso->drive_blacklist, 1);
} else if(strcmp(d_class, "caution") == 0) { } else if(strcmp(d_class, "caution") == 0) {
skipping to change at line 1371 skipping to change at line 1407
else if(flag & 8) { else if(flag & 8) {
cpt= start_path; cpt= start_path;
ret= Xorriso_findi_sorted(xorriso, first_job, (off_t) 0, 1, &cpt, 0); ret= Xorriso_findi_sorted(xorriso, first_job, (off_t) 0, 1, &cpt, 0);
} else } else
ret= Xorriso_findi(xorriso, first_job, NULL, (off_t) 0, NULL, ret= Xorriso_findi(xorriso, first_job, NULL, (off_t) 0, NULL,
start_path, &dir_stbuf, 0, (flag&4)>>1); start_path, &dir_stbuf, 0, (flag&4)>>1);
ex:; ex:;
if(deleter && !(flag&2)) if(deleter && !(flag&2))
Xorriso_pacifier_callback(xorriso, "iso_rr_paths deleted", Xorriso_pacifier_callback(xorriso, "iso_rr_paths deleted",
xorriso->pacifier_count, 0, "", 1|2); xorriso->pacifier_count, 0, "", 1|2);
else if(first_job->action == 28 && !(flag&2)) else if(first_job != NULL && first_job->action == 28 && !(flag&2))
Xorriso_pacifier_callback(xorriso, "file filters processed", Xorriso_pacifier_callback(xorriso, "file filters processed",
xorriso->pacifier_count, 0, "", 1 | 2); xorriso->pacifier_count, 0, "", 1 | 2);
else if(mem_lut!=xorriso->last_update_time && mem_lut!=0.0 && !(flag&2)) else if(mem_lut!=xorriso->last_update_time && mem_lut!=0.0 && !(flag&2))
Xorriso_pacifier_callback(xorriso, "content bytes read", Xorriso_pacifier_callback(xorriso, "content bytes read",
xorriso->pacifier_count, 0, "", 1 | 8 | 32); xorriso->pacifier_count, 0, "", 1 | 8 | 32);
if(first_job->action == 35 && !(flag & 1)) if(first_job != NULL && first_job->action == 35 && !(flag & 1))
Xorriso_report_md5_outcome(xorriso, first_job->target, 0); Xorriso_report_md5_outcome(xorriso, first_job->target, 0);
if(first_job->action == 40) { if(first_job != NULL && first_job->action == 40) {
sprintf(xorriso->result_line,"Size lower : %lus\n", sprintf(xorriso->result_line,"Size lower : %lus\n",
(unsigned long) (first_job->estim_lower_size / (off_t) 2048)); (unsigned long) (first_job->estim_lower_size / (off_t) 2048));
Xorriso_result(xorriso,0); Xorriso_result(xorriso,0);
sprintf(xorriso->result_line,"Size upper : %lus\n", sprintf(xorriso->result_line,"Size upper : %lus\n",
(unsigned long) ((first_job->estim_upper_size / (off_t) 2048) + (unsigned long) ((first_job->estim_upper_size / (off_t) 2048) +
!!(first_job->estim_upper_size % 2048))); !!(first_job->estim_upper_size % 2048)));
Xorriso_result(xorriso,0); Xorriso_result(xorriso,0);
} }
if(access_acl_text != NULL) if(access_acl_text != NULL)
free(access_acl_text); free(access_acl_text);
skipping to change at line 1711 skipping to change at line 1747
"E.g. /dev/sr0 , /tmp/pseudo_drive , stdio:/dev/sdc", "E.g. /dev/sr0 , /tmp/pseudo_drive , stdio:/dev/sdc",
" -dev address Set input and output drive and load eventual ISO image.", " -dev address Set input and output drive and load eventual ISO image.",
" Set the image expansion method to growing.", " Set the image expansion method to growing.",
" -indev address Set input drive and load eventual ISO image. Use expansion", " -indev address Set input drive and load eventual ISO image. Use expansion",
" methods modifying or blind growing.", " methods modifying or blind growing.",
" -outdev address", " -outdev address",
" Set output drive and use modifying or blind growing.", " Set output drive and use modifying or blind growing.",
" -drive_class \"harmless\"|\"banned\"|\"risky\"|\"clear_list\" disk_pattern", " -drive_class \"harmless\"|\"banned\"|\"risky\"|\"clear_list\" disk_pattern",
" Add a drive path pattern to one of the safety lists or make", " Add a drive path pattern to one of the safety lists or make",
" those lists empty. Defaulty entry in \"risky\" is \"/dev\".", " those lists empty. Defaulty entry in \"risky\" is \"/dev\".",
" -grow_blindly \"off\"|predicted_nwa", " -drive_access \"exclusive\"|\"shared\":\"unrestricted\"|\"readonly\"",
" Switch between modifying and blind growing.", " Enable or disable device file locking mechanisms.",
" Enable or disable status and content changes of drive.",
" -scsi_dev_family \"default\"|\"sr\"|\"scd\"|\"sg\"", " -scsi_dev_family \"default\"|\"sr\"|\"scd\"|\"sg\"",
" Linux specific: Choose device file type.", " Linux specific: Choose device file type.",
" -read_speed number[\"k/s\"|\"m/s\"|\"[x]CD\"|\"[x]DVD\"|\"[x]BD\"]", " -read_speed number[\"k/s\"|\"m/s\"|\"[x]CD\"|\"[x]DVD\"|\"[x]BD\"]",
" Set the read speed. Default is \"none\" = do not set speed", " Set the read speed. Default is \"none\" = do not set speed",
" before reading.", " before reading.",
" -grow_blindly \"off\"|predicted_nwa",
" Switch between modifying and blind growing.",
" -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id", " -load \"session\"|\"track\"|\"lba\"|\"sbsector\"|\"volid\"|\"auto\" id",
" Load a particular (outdated) ISO session from a -dev or", " Load a particular (outdated) ISO session from a -dev or",
" -indev which hosts more than one session.", " -indev which hosts more than one session.",
" -displacement [-]block_address", " -displacement [-]block_address",
" When loading ISO tree or reading data files compensate a", " When loading ISO tree or reading data files compensate a",
" displacement versus the start address for which the image", " displacement versus the start address for which the image",
" was prepared.", " was prepared.",
" -read_fs \"any\"|\"norock\"|\"nojoliet\"|\"ecma119\"", " -read_fs \"any\"|\"norock\"|\"nojoliet\"|\"ecma119\"",
" Specify which kind of filesystem tree to load if present.", " Specify which kind of filesystem tree to load if present.",
" -rom_toc_scan \"on\"|\"force\"|\"off\"[:\"emul_on\"|\"emul_off\"]", " -rom_toc_scan \"on\"|\"force\"|\"off\"[:\"emul_on\"|\"emul_off\"]",
skipping to change at line 1761 skipping to change at line 1800
" Enable or disable reading and writing of ACLs.", " Enable or disable reading and writing of ACLs.",
" -xattr \"on\"|\"user\"|\"any\"|\"off\"", " -xattr \"on\"|\"user\"|\"any\"|\"off\"",
" Enable or disable reading and writing of xattr.", " Enable or disable reading and writing of xattr.",
" -md5 \"on\"|\"all\"|\"off\"", " -md5 \"on\"|\"all\"|\"off\"",
" Enable or disable processing of MD5 checksums.", " Enable or disable processing of MD5 checksums.",
" -for_backup", " -for_backup",
" Shortcut for: -hardlinks on -acl on -xattr any -md5 on", " Shortcut for: -hardlinks on -acl on -xattr any -md5 on",
" -ecma119_map \"unmapped\"|\"stripped\"|\"uppercase\"|\"lowercase\"", " -ecma119_map \"unmapped\"|\"stripped\"|\"uppercase\"|\"lowercase\"",
" Choose conversion of file names if neither Rock Ridge", " Choose conversion of file names if neither Rock Ridge",
" nor Joliet is present in the loaded ISO session.", " nor Joliet is present in the loaded ISO session.",
" -iso_nowtime \"dynamic\"|timestring",
" Choose use of current time or a fixed point in time for",
" timestamps where libisofs would normally use the current",
" (i.e. dynamic) time.",
" -disk_dev_ino \"on\"|\"ino_only\"|\"off\"", " -disk_dev_ino \"on\"|\"ino_only\"|\"off\"",
" Enable or disable recording of disk file dev_t and ino_t", " Enable or disable recording of disk file dev_t and ino_t",
" and their use in file comparison.", " and their use in file comparison.",
" -scdbackup_tag list_path record_name", " -scdbackup_tag list_path record_name",
" Enable production of scdbackup tag with -md5 on", " Enable production of scdbackup tag with -md5 on",
" -ban_stdio_write", " -ban_stdio_write",
" Allow for writing only the usage of optical drives.", " Allow for writing only the usage of optical drives.",
" -early_stdio_test \"on\"|\"appendable_wo\"|\"off\"", " -early_stdio_test \"on\"|\"appendable_wo\"|\"off\"",
" Classify stdio drives by effective access permissions.", " Classify stdio drives by effective access permissions.",
" -data_cache_size number_of_tiles blocks_per_tile", " -data_cache_size number_of_tiles blocks_per_tile",
 End of changes. 7 change blocks. 
5 lines changed or deleted 48 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)