Imported Upstream version 0.72.2

This commit is contained in:
Rogério Brito
2011-09-30 14:02:23 -03:00
parent 294f8623c4
commit bc628aa1f3
814 changed files with 6047 additions and 2726 deletions

View File

@@ -1,5 +1,5 @@
/* dvdisaster: Additional error correction for optical media.
* Copyright (C) 2004-2009 Carsten Gnoerlich.
* Copyright (C) 2004-2010 Carsten Gnoerlich.
* Project home page: http://www.dvdisaster.com
* Email: carsten@dvdisaster.com -or- cgnoerlich@fsfe.org
*
@@ -442,7 +442,15 @@ int main(int argc, char *argv[])
Closure->mediumSize = DVD_SL_SIZE;
else if(!strcmp(optarg, "DVD9") || !strcmp(optarg, "dvd9"))
Closure->mediumSize = DVD_DL_SIZE;
else Closure->mediumSize = (gint64)atoll(optarg);
else if(!strcmp(optarg, "BD") || !strcmp(optarg, "bd"))
Closure->mediumSize = BD_SL_SIZE;
else if(!strcmp(optarg, "BD2") || !strcmp(optarg, "bd2"))
Closure->mediumSize = BD_DL_SIZE;
else
{ int len = strlen(optarg);
if(strchr("0123456789", optarg[len-1]))
Closure->mediumSize = (gint64)atoll(optarg);
}
break;
}
case 'e': if(optarg)
@@ -499,9 +507,12 @@ int main(int argc, char *argv[])
case MODIFIER_DRIVER: /* currently undocumented feature */
#if defined(SYS_LINUX)
if(optarg && !strcmp(optarg,"sg"))
Closure->useSGioctl = TRUE;
Closure->useSCSIDriver = DRIVER_SG;
else
if(optarg && !strcmp(optarg,"cdrom"))
Closure->useSCSIDriver = DRIVER_CDROM_FORCED;
else
Stop(_("Valid args for --driver: sg"));
Stop(_("Valid args for --driver: sg,cdrom"));
#else
Stop(_("--driver is only supported on GNU/Linux"));
#endif
@@ -744,10 +755,16 @@ int main(int argc, char *argv[])
Closure->imageName = ApplyAutoSuffix(Closure->imageName, "iso");
}
/*** Determine the default device (OS dependent!) if none
has been specified on the command line. */
/*** Determine the default device (OS dependent!) if
- none has been specified on the command line
- and one if actually required in command line mode.
if(!Closure->device)
GUI mode will unconditionally query devices later anyways
in order to build the menu so we don't have to care about
that now. */
if(!Closure->device && mode == MODE_SEQUENCE
&& (sequence & (1<<MODE_READ | 1<<MODE_SCAN)))
{ Closure->device = DefaultDevice();
devices_queried = TRUE;
}
@@ -898,16 +915,19 @@ int main(int argc, char *argv[])
PrintCLI(_("Tweaking options (see manual before using!)\n"
" -j,--jump n - jump n sectors forward after a read error (default: 16)\n"
" -m n - list/select error correction methods (default: RS01)\n"
" -n,--redundancy n%% - error correction file redundancy (in percent), or\n"
" maximum error correction image size (in sectors)\n"
" -n,--redundancy n%% - error correction data redundancy\n"
" allowed values depend on codec (see manual)\n"
" -v,--verbose - more diagnostic messages\n"
// " -x, --threads n - use n threads for en-/decoding (if supported by codec)\n"
" --adaptive-read - use optimized strategy for reading damaged media\n"
" --auto-suffix - automatically add .iso and .ecc file suffixes\n"
" --cache-size n - image cache size in MB during -c mode (default: 32MB)\n"
" --dao - assume DAO disc; do not trim image end\n"
" --defective-dump d - directory for saving incomplete raw sectors\n"
" --eject - eject medium after successful read\n"
" --defective-dump d - directory for saving incomplete raw sectors\n"));
#ifdef SYS_LINUX
PrintCLI(_(" --driver=sg/cdrom - use cdrom (default) or alternative sg SCSI driver\n"));
#endif
PrintCLI(_(" --eject - eject medium after successful read\n"
" --fill-unreadable n - fill unreadable sectors with byte n\n"
" --ignore-fatal-sense - continue reading after potentially fatal error conditon\n"
" --internal-rereads n - drive may attempt n rereads before reporting an error\n"