Implemented emulation for cdrecord option -immed

ZeroFourZero
Thomas Schmitt 16 years ago
parent c8e9249e9d
commit 190ad329fd

@ -447,6 +447,16 @@ option fifo_start_at=size.
.BI gracetime= seconds
Set the grace time before starting to write. (Default is 0)
.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
Print the identification of the drive and then exit.
.TP

@ -2445,6 +2445,8 @@ see_cdrskin_eng_html:;
fprintf(stderr,
"\t-multi\t\tgenerate a TOC that allows multi session\n");
#endif
fprintf(stderr,
"\t-immed\t\tTry to use the SCSI IMMED flag with certain long lasting commands\n");
fprintf(stderr,
"\t-force\t\tforce to continue on some errors to allow blanking\n");
#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",
"-reset", "-abort", "-overburn", "-ignsize", "-useinfo",
"-fix", "-nofix", "-waiti",
"-immed", "-raw", "-raw96p", "-raw16",
"-raw", "-raw96p", "-raw16",
"-clone", "-text", "-mode2", "-xa", "-xa1", "-xa2", "-xamix",
"-cdi", "-preemp", "-nopreemp", "-copy", "-nocopy",
"-scms", "-shorttrack", "-noshorttrack", "-packet", "-noclose",
@ -6801,6 +6803,15 @@ gracetime_equals:;
} else if(strcmp(argv[i],"--ignore_signals")==0) {
/* 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) {
skin->do_checkdrive= 2;

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

Loading…
Cancel
Save