Implemented emulation for cdrecord option -immed

This commit is contained in:
Thomas Schmitt 2007-09-18 20:40:14 +00:00
parent e9d5c3b760
commit 5bd05398cd
3 changed files with 23 additions and 2 deletions

View File

@ -447,6 +447,16 @@ option fifo_start_at=size.
.BI gracetime= seconds .BI gracetime= seconds
Set the grace time before starting to write. (Default is 0) Set the grace time before starting to write. (Default is 0)
.TP .TP
.BI -immed
Equivalent to:
.br
modesty_on_drive=1:min_percent=75:max_percent=95
.br
The name of this cdrecord option stems from the "Immed" bit which can make some
long running drive commands asynchronous and thus eases the load on some
wiring hardware types. Regardless of option -immed, cdrskin uses asynchronous
commands where possible and appropriate.
.TP
.BI -inq .BI -inq
Print the identification of the drive and then exit. Print the identification of the drive and then exit.
.TP .TP

View File

@ -2445,6 +2445,8 @@ see_cdrskin_eng_html:;
fprintf(stderr, fprintf(stderr,
"\t-multi\t\tgenerate a TOC that allows multi session\n"); "\t-multi\t\tgenerate a TOC that allows multi session\n");
#endif #endif
fprintf(stderr,
"\t-immed\t\tTry to use the SCSI IMMED flag with certain long lasting commands\n");
fprintf(stderr, fprintf(stderr,
"\t-force\t\tforce to continue on some errors to allow blanking\n"); "\t-force\t\tforce to continue on some errors to allow blanking\n");
#ifdef Cdrskin_allow_libburn_taO #ifdef Cdrskin_allow_libburn_taO
@ -6382,7 +6384,7 @@ int Cdrskin_setup(struct CdrskiN *skin, int argc, char **argv, int flag)
"-d", "-Verbose", "-V", "-silent", "-s", "-setdropts", "-prcap", "-d", "-Verbose", "-V", "-silent", "-s", "-setdropts", "-prcap",
"-reset", "-abort", "-overburn", "-ignsize", "-useinfo", "-reset", "-abort", "-overburn", "-ignsize", "-useinfo",
"-fix", "-nofix", "-waiti", "-fix", "-nofix", "-waiti",
"-immed", "-raw", "-raw96p", "-raw16", "-raw", "-raw96p", "-raw16",
"-clone", "-text", "-mode2", "-xa", "-xa1", "-xa2", "-xamix", "-clone", "-text", "-mode2", "-xa", "-xa1", "-xa2", "-xamix",
"-cdi", "-preemp", "-nopreemp", "-copy", "-nocopy", "-cdi", "-preemp", "-nopreemp", "-copy", "-nocopy",
"-scms", "-shorttrack", "-noshorttrack", "-packet", "-noclose", "-scms", "-shorttrack", "-noshorttrack", "-packet", "-noclose",
@ -6801,6 +6803,15 @@ gracetime_equals:;
} else if(strcmp(argv[i],"--ignore_signals")==0) { } else if(strcmp(argv[i],"--ignore_signals")==0) {
/* is handled in Cdrpreskin_setup() */; /* is handled in Cdrpreskin_setup() */;
} else if(strcmp(argv[i],"-immed")==0) {
#ifdef Cdrskin_libburn_has_set_waitinG
skin->modesty_on_drive= 1;
skin->min_buffer_percent= 75;
skin->max_buffer_percent= 95;
#else
;
#endif /* Cdrskin_libburn_has_set_waitinG */
} else if(strcmp(argv[i],"-inq")==0) { } else if(strcmp(argv[i],"-inq")==0) {
skin->do_checkdrive= 2; skin->do_checkdrive= 2;

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2007.09.18.201556" #define Cdrskin_timestamP "2007.09.18.204043"