Made verbosity and exit value of xorrecord more similar to cdrecord resp. wodim
This commit is contained in:
parent
deed48dba9
commit
2cd0eb94d7
@ -385,8 +385,47 @@ no_volunteer:;
|
|||||||
sprintf(xorriso->result_line, "Cdrecord 2.01-Emulation Copyright (C) 2011 see libburnia-project.org xorriso\n");
|
sprintf(xorriso->result_line, "Cdrecord 2.01-Emulation Copyright (C) 2011 see libburnia-project.org xorriso\n");
|
||||||
Xorriso_result(xorriso, 1);
|
Xorriso_result(xorriso, 1);
|
||||||
Xorriso_option_version(xorriso, 0);
|
Xorriso_option_version(xorriso, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(do_help) {
|
||||||
|
Xorriso_cdrskin_help(xorriso, 0);
|
||||||
|
}
|
||||||
|
if(strcmp(blank_mode, "help")==0) {
|
||||||
|
for(i= 0; strcmp(blank_help[i], "@End_of_helptexT@")!=0; i++) {
|
||||||
|
sprintf(xorriso->info_text, "%s\n", blank_help[i]);
|
||||||
|
Xorriso_info(xorriso,0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(do_help || strcmp(blank_mode, "help") == 0 || do_version) {
|
||||||
ret= 1; goto ex;
|
ret= 1; goto ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(do_verbous<=0)
|
||||||
|
report_about= "NOTE";
|
||||||
|
else if(do_verbous<=2)
|
||||||
|
report_about= "UPDATE";
|
||||||
|
else if(do_verbous==3)
|
||||||
|
report_about= "DEBUG";
|
||||||
|
else
|
||||||
|
report_about= "ALL";
|
||||||
|
Xorriso_option_report_about(xorriso, report_about, 0);
|
||||||
|
|
||||||
|
if(do_scanbus) {
|
||||||
|
if(do_scanbus==1)
|
||||||
|
/* >>> would need -scanbus compatible output and input format */;
|
||||||
|
else
|
||||||
|
Xorriso_option_devices(xorriso, 0);
|
||||||
|
ret= 1; goto ex;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!(do_checkdrive || do_atip || do_toc || blank_mode[0] || track_source[0] ||
|
||||||
|
do_eject || do_msinfo)) {
|
||||||
|
sprintf(xorriso->info_text,
|
||||||
|
"-as cdrskin: No option specified, which would cause an action.");
|
||||||
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||||
|
ret= 1; goto ex;
|
||||||
|
}
|
||||||
|
|
||||||
if(do_waiti) {
|
if(do_waiti) {
|
||||||
sprintf(xorriso->info_text,
|
sprintf(xorriso->info_text,
|
||||||
"xorriso: Option -waiti pauses program until input appears at stdin\n");
|
"xorriso: Option -waiti pauses program until input appears at stdin\n");
|
||||||
@ -402,7 +441,7 @@ no_volunteer:;
|
|||||||
sprintf(xorriso->info_text, "xorriso: Option -waiti pausing is done.\n");
|
sprintf(xorriso->info_text, "xorriso: Option -waiti pausing is done.\n");
|
||||||
}
|
}
|
||||||
if(dev_adr[0]) {
|
if(dev_adr[0]) {
|
||||||
hflag= 2 | 32 | 64;
|
hflag= 2 | 64; /* ts B11201 no more: | 32 */
|
||||||
if(!do_grow)
|
if(!do_grow)
|
||||||
hflag|= 8; /* consider overwriteables as blank */
|
hflag|= 8; /* consider overwriteables as blank */
|
||||||
ret= Xorriso_option_dev(xorriso, dev_adr, hflag);
|
ret= Xorriso_option_dev(xorriso, dev_adr, hflag);
|
||||||
@ -410,29 +449,6 @@ no_volunteer:;
|
|||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(do_help) {
|
|
||||||
Xorriso_cdrskin_help(xorriso, 0);
|
|
||||||
ret= 1; goto ex;
|
|
||||||
}
|
|
||||||
if(do_scanbus) {
|
|
||||||
if(do_scanbus==1)
|
|
||||||
/* >>> would need -scanbus compatible output and input format */;
|
|
||||||
else
|
|
||||||
Xorriso_option_devices(xorriso, 0);
|
|
||||||
ret= 1; goto ex;
|
|
||||||
}
|
|
||||||
if(strcmp(blank_mode, "help")==0) {
|
|
||||||
for(i= 0; strcmp(blank_help[i], "@End_of_helptexT@")!=0; i++) {
|
|
||||||
sprintf(xorriso->info_text, "%s\n", blank_help[i]);
|
|
||||||
Xorriso_info(xorriso,0);
|
|
||||||
}
|
|
||||||
ret= 1; goto ex;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!(do_checkdrive || do_atip || do_toc || blank_mode[0] || track_source[0] ||
|
|
||||||
do_eject || do_msinfo))
|
|
||||||
{ret= 1; goto ex;}
|
|
||||||
|
|
||||||
if(xorriso->out_drive_handle==NULL) {
|
if(xorriso->out_drive_handle==NULL) {
|
||||||
sprintf(xorriso->info_text, "-as %s: No output drive selected", whom);
|
sprintf(xorriso->info_text, "-as %s: No output drive selected", whom);
|
||||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||||
@ -453,16 +469,6 @@ no_volunteer:;
|
|||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(do_verbous<=0)
|
|
||||||
report_about= "SORRY";
|
|
||||||
else if(do_verbous<=2)
|
|
||||||
report_about= "UPDATE";
|
|
||||||
else if(do_verbous==3)
|
|
||||||
report_about= "DEBUG";
|
|
||||||
else
|
|
||||||
report_about= "ALL";
|
|
||||||
Xorriso_option_report_about(xorriso, report_about, 0);
|
|
||||||
|
|
||||||
if(do_checkdrive) {
|
if(do_checkdrive) {
|
||||||
ret= Xorriso_atip(xorriso, 2-(do_checkdrive==2));
|
ret= Xorriso_atip(xorriso, 2-(do_checkdrive==2));
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
|
@ -1900,6 +1900,9 @@ int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address,
|
|||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
goto ex;
|
goto ex;
|
||||||
|
|
||||||
|
sprintf(xorriso->info_text, "Beginning to write data track.\n");
|
||||||
|
Xorriso_info(xorriso,0);
|
||||||
|
|
||||||
/* Important: do not return until burn_is_aborting() was checked */
|
/* Important: do not return until burn_is_aborting() was checked */
|
||||||
signal_mode= 1;
|
signal_mode= 1;
|
||||||
ret= burn_drive_get_drive_role(drive);
|
ret= burn_drive_get_drive_role(drive);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
.\" First parameter, NAME, should be all caps
|
.\" First parameter, NAME, should be all caps
|
||||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
.\" other parameters are allowed: see man(7), man(1)
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
.TH XORRECORD 1 "Version 1.1.9, Nov 21, 2011"
|
.TH XORRECORD 1 "Version 1.1.9, Dec 01, 2011"
|
||||||
.\" Please adjust this date whenever revising the manpage.
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
.\"
|
.\"
|
||||||
.\" Some roff macros, for reference:
|
.\" Some roff macros, for reference:
|
||||||
@ -147,6 +147,8 @@ Each accessible drive is shown by a line like:
|
|||||||
The libburn address of this drive is '/dev/sr0'. 'TSSTcorp' is the
|
The libburn address of this drive is '/dev/sr0'. 'TSSTcorp' is the
|
||||||
name of the vendor (in this case: Toshiba Samsung Storage Technologies
|
name of the vendor (in this case: Toshiba Samsung Storage Technologies
|
||||||
Corporation), 'CDDVDW SH\-S203B' is the model name (in this case: a DVD burner).
|
Corporation), 'CDDVDW SH\-S203B' is the model name (in this case: a DVD burner).
|
||||||
|
.br
|
||||||
|
Afterwards end emulation without performing any further drive operation.
|
||||||
.TP
|
.TP
|
||||||
\fBdev=drive_address\fR
|
\fBdev=drive_address\fR
|
||||||
Set the libburn address of the drive to be used.
|
Set the libburn address of the drive to be used.
|
||||||
@ -160,6 +162,10 @@ E.g. on Solaris: dev=/dev/rdsk/c2t2d0s2
|
|||||||
See also above "Drive preparation and addressing".
|
See also above "Drive preparation and addressing".
|
||||||
.br
|
.br
|
||||||
The medium in the drive should not be mounted or be otherwise in use.
|
The medium in the drive should not be mounted or be otherwise in use.
|
||||||
|
.br
|
||||||
|
This option will only get into effect if a track source, a blank= option,
|
||||||
|
or a drive inquiry option is given. Else it will lead to a SORRY event
|
||||||
|
and normally cause a non\-zero exit value.
|
||||||
.TP
|
.TP
|
||||||
.B Inquiring drive and media:
|
.B Inquiring drive and media:
|
||||||
.TP
|
.TP
|
||||||
@ -311,6 +317,13 @@ For re\-formatting already formatted media or for formatting with
|
|||||||
non\-default size, use program \fBxorriso\fR with command \fB\-format\fR.
|
non\-default size, use program \fBxorriso\fR with command \fB\-format\fR.
|
||||||
.br
|
.br
|
||||||
(Note: blank=format_overwrite is not an original cdrecord options)
|
(Note: blank=format_overwrite is not an original cdrecord options)
|
||||||
|
.TP
|
||||||
|
.br
|
||||||
|
help
|
||||||
|
.br
|
||||||
|
Print a short overview of blank modes to standard error output.
|
||||||
|
.br
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
\fB\-multi\fR
|
\fB\-multi\fR
|
||||||
@ -453,6 +466,8 @@ Print to standard output a line beginning by
|
|||||||
and further lines which report the version of xorriso and its
|
and further lines which report the version of xorriso and its
|
||||||
supporting libraries. They also state the license under which the program
|
supporting libraries. They also state the license under which the program
|
||||||
is provided, and disclaim any warranty, to the extent permitted by law.
|
is provided, and disclaim any warranty, to the extent permitted by law.
|
||||||
|
.br
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR
|
\fB\-v\fR
|
||||||
Increase program verbosity by one level. There are four verbosity levels
|
Increase program verbosity by one level. There are four verbosity levels
|
||||||
@ -475,6 +490,8 @@ from said specs, or if you get asked for this log by a maintainer of
|
|||||||
\fB\-help\fR
|
\fB\-help\fR
|
||||||
Print a sparse list of program options to standard error
|
Print a sparse list of program options to standard error
|
||||||
and declare not to be cdrecord.
|
and declare not to be cdrecord.
|
||||||
|
.br
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
.TP
|
.TP
|
||||||
.B Options not compatible to cdrecord:
|
.B Options not compatible to cdrecord:
|
||||||
.TP
|
.TP
|
||||||
|
@ -15,7 +15,7 @@ xorriso
|
|||||||
|
|
||||||
File: xorrecord.info, Node: Top, Next: Overview, Up: (dir)
|
File: xorrecord.info, Node: Top, Next: Overview, Up: (dir)
|
||||||
|
|
||||||
xorrecord 1.1.7
|
xorrecord 1.1.9
|
||||||
***************
|
***************
|
||||||
|
|
||||||
xorrecord - Emulation of CD/DVD/BD program cdrecord by program xorriso
|
xorrecord - Emulation of CD/DVD/BD program cdrecord by program xorriso
|
||||||
@ -170,6 +170,8 @@ File: xorrecord.info, Node: DriveAddr, Next: Inquire, Prev: Options, Up: Opt
|
|||||||
name of the vendor (in this case: Toshiba Samsung Storage
|
name of the vendor (in this case: Toshiba Samsung Storage
|
||||||
Technologies Corporation), 'CDDVDW SH-S203B' is the model name (in
|
Technologies Corporation), 'CDDVDW SH-S203B' is the model name (in
|
||||||
this case: a DVD burner).
|
this case: a DVD burner).
|
||||||
|
Afterwards end emulation without performing any further drive
|
||||||
|
operation.
|
||||||
|
|
||||||
dev=drive_address
|
dev=drive_address
|
||||||
Set the libburn address of the drive to be used.
|
Set the libburn address of the drive to be used.
|
||||||
@ -179,6 +181,9 @@ dev=drive_address
|
|||||||
See also above "Drive preparation and addressing".
|
See also above "Drive preparation and addressing".
|
||||||
The medium in the drive should not be mounted or be otherwise in
|
The medium in the drive should not be mounted or be otherwise in
|
||||||
use.
|
use.
|
||||||
|
This option will only get into effect if a track source, a blank=
|
||||||
|
option, or a drive inquiry option is given. Else it will lead to a
|
||||||
|
SORRY event and normally cause a non-zero exit value.
|
||||||
|
|
||||||
|
|
||||||
File: xorrecord.info, Node: Inquire, Next: SetBurn, Prev: DriveAddr, Up: Options
|
File: xorrecord.info, Node: Inquire, Next: SetBurn, Prev: DriveAddr, Up: Options
|
||||||
@ -279,7 +284,7 @@ blank=mode
|
|||||||
as_needed
|
as_needed
|
||||||
Try to make the media ready for writing from scratch. If it needs
|
Try to make the media ready for writing from scratch. If it needs
|
||||||
formatting, then format it. If it is not blank, then try to apply
|
formatting, then format it. If it is not blank, then try to apply
|
||||||
blank=fast. It is a reason to abort if the mediium cannot assume
|
blank=fast. It is a reason to abort if the medium cannot assume
|
||||||
thoroughly writeable state, e.g. if it is a non-blank write-once.
|
thoroughly writeable state, e.g. if it is a non-blank write-once.
|
||||||
This leaves unformatted DVD-RW in unformatted blank state. To
|
This leaves unformatted DVD-RW in unformatted blank state. To
|
||||||
format DVD-RW use blank=format_overwrite. Blank unformatted BD-R
|
format DVD-RW use blank=format_overwrite. Blank unformatted BD-R
|
||||||
@ -320,6 +325,10 @@ blank=mode
|
|||||||
non-default size, use program *xorriso* with command *-format*.
|
non-default size, use program *xorriso* with command *-format*.
|
||||||
(Note: blank=format_overwrite is not an original cdrecord options)
|
(Note: blank=format_overwrite is not an original cdrecord options)
|
||||||
|
|
||||||
|
help
|
||||||
|
Print a short overview of blank modes to standard error output.
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
|
|
||||||
-multi
|
-multi
|
||||||
This option keeps CD, unformatted DVD-R[W], DVD+R, or BD-R
|
This option keeps CD, unformatted DVD-R[W], DVD+R, or BD-R
|
||||||
appendable after the current session has been written. Without it
|
appendable after the current session has been written. Without it
|
||||||
@ -451,6 +460,7 @@ File: xorrecord.info, Node: Verbous, Next: NonCdrecord, Prev: SetBurn, Up: O
|
|||||||
supporting libraries. They also state the license under which the
|
supporting libraries. They also state the license under which the
|
||||||
program is provided, and disclaim any warranty, to the extent
|
program is provided, and disclaim any warranty, to the extent
|
||||||
permitted by law.
|
permitted by law.
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
|
|
||||||
-v
|
-v
|
||||||
Increase program verbosity by one level. There are four verbosity
|
Increase program verbosity by one level. There are four verbosity
|
||||||
@ -471,6 +481,7 @@ File: xorrecord.info, Node: Verbous, Next: NonCdrecord, Prev: SetBurn, Up: O
|
|||||||
-help
|
-help
|
||||||
Print a sparse list of program options to standard error and
|
Print a sparse list of program options to standard error and
|
||||||
declare not to be cdrecord.
|
declare not to be cdrecord.
|
||||||
|
Afterwards end emulation without performing any drive operation.
|
||||||
|
|
||||||
|
|
||||||
File: xorrecord.info, Node: NonCdrecord, Next: ExDevices, Prev: Verbous, Up: Options
|
File: xorrecord.info, Node: NonCdrecord, Next: ExDevices, Prev: Verbous, Up: Options
|
||||||
@ -805,33 +816,33 @@ File: xorrecord.info, Node: CommandIdx, Next: ConceptIdx, Prev: Legal, Up: T
|
|||||||
(line 8)
|
(line 8)
|
||||||
* -atip inquire medium state: Inquire. (line 16)
|
* -atip inquire medium state: Inquire. (line 16)
|
||||||
* -checkdrive inquire drive CD capabilities: Inquire. (line 12)
|
* -checkdrive inquire drive CD capabilities: Inquire. (line 12)
|
||||||
* -data explicitely announce a data track: SetBurn. (line 155)
|
* -data explicitely announce a data track: SetBurn. (line 159)
|
||||||
* -dummy control write simulation: SetBurn. (line 97)
|
* -dummy control write simulation: SetBurn. (line 101)
|
||||||
* -eject finally eject drive tray: SetBurn. (line 194)
|
* -eject finally eject drive tray: SetBurn. (line 198)
|
||||||
* -help print sparse overview of options: Verbous. (line 32)
|
* -help print sparse overview of options: Verbous. (line 33)
|
||||||
* -inq inquire drive identifiers: Inquire. (line 8)
|
* -inq inquire drive identifiers: Inquire. (line 8)
|
||||||
* -isosize obtain track size from ISO 9660 superblock: SetBurn.
|
* -isosize obtain track size from ISO 9660 superblock: SetBurn.
|
||||||
(line 131)
|
(line 135)
|
||||||
* -msinfo retrieve multi-session info: Inquire. (line 48)
|
* -msinfo retrieve multi-session info: Inquire. (line 48)
|
||||||
* -multi keep media appendable after burn run: SetBurn. (line 80)
|
* -multi keep media appendable after burn run: SetBurn. (line 84)
|
||||||
* -nopad disable adding of bytes to end of track: SetBurn. (line 147)
|
* -nopad disable adding of bytes to end of track: SetBurn. (line 151)
|
||||||
* -pad add 15 blocks to end of track: SetBurn. (line 150)
|
* -pad add 15 blocks to end of track: SetBurn. (line 154)
|
||||||
* -toc inquire medium content: Inquire. (line 25)
|
* -toc inquire medium content: Inquire. (line 25)
|
||||||
* -v increase program verbosity: Verbous. (line 16)
|
* -v increase program verbosity: Verbous. (line 17)
|
||||||
* -V log SCSI command transactions to stderr: Verbous. (line 21)
|
* -V log SCSI command transactions to stderr: Verbous. (line 22)
|
||||||
* -version report emulation and xorriso version: Verbous. (line 8)
|
* -version report emulation and xorriso version: Verbous. (line 8)
|
||||||
* -waiti access drive only after stdin delivers data: SetBurn.
|
* -waiti access drive only after stdin delivers data: SetBurn.
|
||||||
(line 105)
|
(line 109)
|
||||||
* blank= make media re-usabable or format media: SetBurn. (line 27)
|
* blank= make media re-usabable or format media: SetBurn. (line 27)
|
||||||
* dev= address the drive to be used: DriveAddr. (line 20)
|
* dev= address the drive to be used: DriveAddr. (line 22)
|
||||||
* dvd_obs= set write transaction payload size: NonCdrecord. (line 46)
|
* dvd_obs= set write transaction payload size: NonCdrecord. (line 46)
|
||||||
* fs= set program fifo size: SetBurn. (line 161)
|
* fs= set program fifo size: SetBurn. (line 165)
|
||||||
* padsize= add bytes to end of track: SetBurn. (line 139)
|
* padsize= add bytes to end of track: SetBurn. (line 143)
|
||||||
* speed= set write speed: SetBurn. (line 177)
|
* speed= set write speed: SetBurn. (line 181)
|
||||||
* stdio_sync= control stdio buffer: NonCdrecord. (line 61)
|
* stdio_sync= control stdio buffer: NonCdrecord. (line 61)
|
||||||
* stream_recording= try to get full speed on DVD-RAM, BD: NonCdrecord.
|
* stream_recording= try to get full speed on DVD-RAM, BD: NonCdrecord.
|
||||||
(line 35)
|
(line 35)
|
||||||
* tsize= set a fixed track size: SetBurn. (line 119)
|
* tsize= set a fixed track size: SetBurn. (line 123)
|
||||||
* write_start_address= set block address for write start: NonCdrecord.
|
* write_start_address= set block address for write start: NonCdrecord.
|
||||||
(line 54)
|
(line 54)
|
||||||
|
|
||||||
@ -844,23 +855,23 @@ File: xorrecord.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
|
|||||||
|