New -as cdrecord option --multi_if_possible
This commit is contained in:
parent
baedbd5379
commit
b587178ff1
@ -67,6 +67,7 @@ int Xorriso_cdrskin_help(struct XorrisO *xorriso, int flag)
|
||||
"\t-toc\t\tretrieve and print TOC/PMA data",
|
||||
"\t-atip\t\tretrieve media state, print \"Is *erasable\"",
|
||||
"\t-multi\t\tgenerate a TOC that allows multi session",
|
||||
"\t--multi_if_possible\tapply -multi if the medium supports it",
|
||||
"\t-waiti\t\twait until input is available before opening SCSI",
|
||||
"\t-tao\t\tWrite disk in TAO mode.",
|
||||
"\t-dao\t\tWrite disk in SAO mode.",
|
||||
@ -108,6 +109,7 @@ int Xorriso_cdrskin(struct XorrisO *xorriso, char *whom, int argc, char **argv,
|
||||
int do_atip= 0, do_checkdrive= 0, do_eject= 0, do_scanbus= 0;
|
||||
int do_toc= 0, do_verbous= 0, do_version= 0, do_help= 0, do_waiti= 0;
|
||||
int do_multi= 0, do_msinfo= 0, do_grow= 0, do_isosize= 0, do_xa1= 0;
|
||||
int do_auto_close= 0;
|
||||
double write_start_address= -1.0, tsize= -1.0, mem_auto_close;
|
||||
char *track_source= NULL, *dev_adr= NULL, *cpt;
|
||||
char mem_report_about_text[80], *report_about= "SORRY", blank_mode[80];
|
||||
@ -298,6 +300,10 @@ no_volunteer:;
|
||||
do_msinfo= 1;
|
||||
} else if(strcmp(argpt, "-multi")==0) {
|
||||
do_multi= 1;
|
||||
do_auto_close= 0;
|
||||
} else if(strcmp(argv[i], "--multi_if_possible") == 0) {
|
||||
do_multi= 1;
|
||||
do_auto_close= 1;
|
||||
} else if(strcmp(argpt, "-nopad")==0) {
|
||||
xorriso->padding= 0;
|
||||
} else if(strcmp(argv[i], "--no_rc")==0) { /* intentional: argv[i] */
|
||||
@ -511,10 +517,15 @@ no_volunteer:;
|
||||
}
|
||||
if(track_source[0]) {
|
||||
xorriso->do_close= !do_multi;
|
||||
xorriso->auto_close= 0;
|
||||
xorriso->auto_close= do_auto_close;
|
||||
ret= Xorriso_burn_track(xorriso, (off_t) write_start_address,
|
||||
track_source, (off_t) tsize,
|
||||
(!!do_grow) | ((!!do_isosize) << 1) | ((do_xa1 == 1) << 2));
|
||||
if(ret == 2) {
|
||||
ret= Xorriso_retry_burn_track(xorriso, (off_t) write_start_address,
|
||||
track_source, (off_t) tsize,
|
||||
(!!do_grow) | ((!!do_isosize) << 1) | ((do_xa1 == 1) << 2));
|
||||
}
|
||||
aq_ret= Xorriso_reaquire_outdev(xorriso, 2*(ret>0));
|
||||
if(ret<=0 && ret<aq_ret)
|
||||
goto ex;
|
||||
|
@ -9,7 +9,7 @@
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH XORRECORD 1 "Version 1.3.3, Aug 07, 2013"
|
||||
.TH XORRECORD 1 "Version 1.3.3, Oct 27, 2013"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -333,8 +333,9 @@ after the current session has been written.
|
||||
Without it the disc gets closed and may not be written any more \- unless it
|
||||
is a \-RW and gets blanked, which causes loss of its content.
|
||||
.br
|
||||
This option cannot be applied to DVD\-R DL and DVD\-RW which were blanked
|
||||
by type deformat_quickest.
|
||||
This option cannot be applied to DVD\-R DL or to DVD\-RW which were blanked
|
||||
by mode "deformat_quickest". Option \-\-multi_if_possible
|
||||
may automatically recognize and handle this situation.
|
||||
.br
|
||||
In order to have all filesystem content accessible, the eventual ISO\-9660
|
||||
filesystem of a follow\-up
|
||||
@ -539,6 +540,14 @@ appendable rather than as blank. I.e. options \-msinfo and \-toc will work.
|
||||
\-toc will always show a single session with its size increasing with
|
||||
every added ISO 9660 image.
|
||||
.TP
|
||||
\fB--multi_if_possible\fR
|
||||
Apply option \-multi if the medium is suitable. Not suitable are DVD\-R DL
|
||||
and DVD\-RW, which were blanked with mode "deformat_quickest".
|
||||
.br
|
||||
Not all drives correctly recognize such fast\-blanked DVD\-RW which need "on".
|
||||
If there is well founded suspicion that a burn run failed due to
|
||||
\-multi, then this causes a re\-try without \-multi.
|
||||
.TP
|
||||
\fBstream_recording="on"|"off"|number\fR
|
||||
Mode "on" requests that compliance to the desired speed setting is
|
||||
preferred over management of write errors. With DVD\-RAM and BD this can
|
||||
|
@ -335,8 +335,9 @@ blank=mode
|
||||
appendable after the current session has been written. Without it
|
||||
the disc gets closed and may not be written any more - unless it
|
||||
is a -RW and gets blanked, which causes loss of its content.
|
||||
This option cannot be applied to DVD-R DL and DVD-RW which were
|
||||
blanked by type deformat_quickest.
|
||||
This option cannot be applied to DVD-R DL or to DVD-RW which were
|
||||
blanked by mode "deformat_quickest". Option -multi_if_possible may
|
||||
automatically recognize and handle this situation.
|
||||
In order to have all filesystem content accessible, the eventual
|
||||
ISO-9660 filesystem of a follow-up session needs to be prepared in
|
||||
a special way by the filesystem formatter program. mkisofs,
|
||||
@ -533,6 +534,14 @@ File: xorrecord.info, Node: NonCdrecord, Next: ExDevices, Prev: Verbous, Up:
|
||||
single session with its size increasing with every added ISO 9660
|
||||
image.
|
||||
|
||||
--multi_if_possible
|
||||
Apply option -multi if the medium is suitable. Not suitable are
|
||||
DVD-R DL and DVD-RW, which were blanked with mode
|
||||
"deformat_quickest".
|
||||
Not all drives correctly recognize such fast-blanked DVD-RW which
|
||||
need "on". If there is well founded suspicion that a burn run
|
||||
failed due to -multi, then this causes a re-try without -multi.
|
||||
|
||||
stream_recording="on"|"off"|number
|
||||
Mode "on" requests that compliance to the desired speed setting is
|
||||
preferred over management of write errors. With DVD-RAM and BD
|
||||
@ -828,42 +837,44 @@ File: xorrecord.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
|
||||
* --devices get list of drives: DriveAddr. (line 8)
|
||||
* --grow_overwriteable_iso emulate ISO 9660 multi-session: NonCdrecord.
|
||||
(line 13)
|
||||
* --multi_if_possible apply -multi if medium is suitable: NonCdrecord.
|
||||
(line 35)
|
||||
* --no_rc do not execute xorriso startup files: NonCdrecord.
|
||||
(line 8)
|
||||
* -atip inquire medium state: Inquire. (line 16)
|
||||
* -checkdrive inquire drive CD capabilities: Inquire. (line 12)
|
||||
* -dao explicitely set write type SAO/DAO: SetBurn. (line 177)
|
||||
* -data explicitely announce a data track: SetBurn. (line 159)
|
||||
* -dummy control write simulation: SetBurn. (line 101)
|
||||
* -eject finally eject drive tray: SetBurn. (line 213)
|
||||
* -dao explicitely set write type SAO/DAO: SetBurn. (line 178)
|
||||
* -data explicitely announce a data track: SetBurn. (line 160)
|
||||
* -dummy control write simulation: SetBurn. (line 102)
|
||||
* -eject finally eject drive tray: SetBurn. (line 214)
|
||||
* -help print sparse overview of options: Verbous. (line 33)
|
||||
* -inq inquire drive identifiers: Inquire. (line 8)
|
||||
* -isosize obtain track size from ISO 9660 superblock: SetBurn.
|
||||
(line 135)
|
||||
(line 136)
|
||||
* -msinfo retrieve multi-session info: Inquire. (line 48)
|
||||
* -multi keep media appendable after burn run: SetBurn. (line 84)
|
||||
* -nopad disable adding of bytes to end of track: SetBurn. (line 151)
|
||||
* -pad add 15 blocks to end of track: SetBurn. (line 154)
|
||||
* -sao explicitely set write type SAO/DAO: SetBurn. (line 172)
|
||||
* -tao explicitely set write type TAO: SetBurn. (line 165)
|
||||
* -nopad disable adding of bytes to end of track: SetBurn. (line 152)
|
||||
* -pad add 15 blocks to end of track: SetBurn. (line 155)
|
||||
* -sao explicitely set write type SAO/DAO: SetBurn. (line 173)
|
||||
* -tao explicitely set write type TAO: SetBurn. (line 166)
|
||||
* -toc inquire medium content: Inquire. (line 25)
|
||||
* -v increase program verbosity: Verbous. (line 17)
|
||||
* -V log SCSI command transactions to stderr: Verbous. (line 22)
|
||||
* -version report emulation and xorriso version: Verbous. (line 8)
|
||||
* -waiti access drive only after stdin delivers data: SetBurn.
|
||||
(line 109)
|
||||
(line 110)
|
||||
* blank= make media re-usabable or format media: SetBurn. (line 27)
|
||||
* dev= address the drive to be used: DriveAddr. (line 22)
|
||||
* dvd_obs= set write transaction payload size: NonCdrecord. (line 46)
|
||||
* fs= set program fifo size: SetBurn. (line 180)
|
||||
* padsize= add bytes to end of track: SetBurn. (line 143)
|
||||
* speed= set write speed: SetBurn. (line 196)
|
||||
* stdio_sync= control stdio buffer: NonCdrecord. (line 61)
|
||||
* dvd_obs= set write transaction payload size: NonCdrecord. (line 54)
|
||||
* fs= set program fifo size: SetBurn. (line 181)
|
||||
* padsize= add bytes to end of track: SetBurn. (line 144)
|
||||
* speed= set write speed: SetBurn. (line 197)
|
||||
* stdio_sync= control stdio buffer: NonCdrecord. (line 69)
|
||||
* stream_recording= try to get full speed on DVD-RAM, BD: NonCdrecord.
|
||||
(line 35)
|
||||
* tsize= set a fixed track size: SetBurn. (line 123)
|
||||
(line 43)
|
||||
* tsize= set a fixed track size: SetBurn. (line 124)
|
||||
* write_start_address= set block address for write start: NonCdrecord.
|
||||
(line 54)
|
||||
(line 62)
|
||||
|
||||
|
||||
File: xorrecord.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
|
||||
@ -874,22 +885,23 @@ File: xorrecord.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
|
||||
|