Made verbosity and exit value of xorrecord more similar to cdrecord resp. wodim
This commit is contained in:
parent
0f9e0e4796
commit
1f77c66e15
@ -385,8 +385,47 @@ no_volunteer:;
|
||||
sprintf(xorriso->result_line, "Cdrecord 2.01-Emulation Copyright (C) 2011 see libburnia-project.org xorriso\n");
|
||||
Xorriso_result(xorriso, 1);
|
||||
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;
|
||||
}
|
||||
|
||||
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) {
|
||||
sprintf(xorriso->info_text,
|
||||
"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");
|
||||
}
|
||||
if(dev_adr[0]) {
|
||||
hflag= 2 | 32 | 64;
|
||||
hflag= 2 | 64; /* ts B11201 no more: | 32 */
|
||||
if(!do_grow)
|
||||
hflag|= 8; /* consider overwriteables as blank */
|
||||
ret= Xorriso_option_dev(xorriso, dev_adr, hflag);
|
||||
@ -410,29 +449,6 @@ no_volunteer:;
|
||||
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) {
|
||||
sprintf(xorriso->info_text, "-as %s: No output drive selected", whom);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
@ -453,16 +469,6 @@ no_volunteer:;
|
||||
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) {
|
||||
ret= Xorriso_atip(xorriso, 2-(do_checkdrive==2));
|
||||
if(ret<=0)
|
||||
|
@ -1900,6 +1900,9 @@ int Xorriso_burn_track(struct XorrisO *xorriso, off_t write_start_address,
|
||||
if(ret<=0)
|
||||
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 */
|
||||
signal_mode= 1;
|
||||
ret= burn_drive_get_drive_role(drive);
|
||||
|
@ -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.1.9, Nov 21, 2011"
|
||||
.TH XORRECORD 1 "Version 1.1.9, Dec 01, 2011"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" 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
|
||||
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).
|
||||
.br
|
||||
Afterwards end emulation without performing any further drive operation.
|
||||
.TP
|
||||
\fBdev=drive_address\fR
|
||||
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".
|
||||
.br
|
||||
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
|
||||
.B Inquiring drive and media:
|
||||
.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.
|
||||
.br
|
||||
(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
|
||||
.TP
|
||||
\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
|
||||
supporting libraries. They also state the license under which the program
|
||||
is provided, and disclaim any warranty, to the extent permitted by law.
|
||||
.br
|
||||
Afterwards end emulation without performing any drive operation.
|
||||
.TP
|
||||
\fB\-v\fR
|
||||
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
|
||||
Print a sparse list of program options to standard error
|
||||
and declare not to be cdrecord.
|
||||
.br
|
||||
Afterwards end emulation without performing any drive operation.
|
||||
.TP
|
||||
.B Options not compatible to cdrecord:
|
||||
.TP
|
||||
|
@ -15,7 +15,7 @@ xorriso
|
||||
|
||||
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
|
||||
@ -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
|
||||
Technologies Corporation), 'CDDVDW SH-S203B' is the model name (in
|
||||
this case: a DVD burner).
|
||||
Afterwards end emulation without performing any further drive
|
||||
operation.
|
||||
|
||||
dev=drive_address
|
||||
Set the libburn address of the drive to be used.
|
||||
@ -179,6 +181,9 @@ dev=drive_address
|
||||
See also above "Drive preparation and addressing".
|
||||
The medium in the drive should not be mounted or be otherwise in
|
||||
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
|
||||
@ -279,7 +284,7 @@ blank=mode
|
||||
as_needed
|
||||
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
|
||||
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.
|
||||
This leaves unformatted DVD-RW in unformatted blank state. To
|
||||
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*.
|
||||
(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
|
||||
This option keeps CD, unformatted DVD-R[W], DVD+R, or BD-R
|
||||
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
|
||||
program is provided, and disclaim any warranty, to the extent
|
||||
permitted by law.
|
||||
Afterwards end emulation without performing any drive operation.
|
||||
|
||||
-v
|
||||
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
|
||||
Print a sparse list of program options to standard error and
|
||||
declare not to be cdrecord.
|
||||
Afterwards end emulation without performing any drive operation.
|
||||
|
||||
|
||||
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)
|
||||
* -atip inquire medium state: Inquire. (line 16)
|
||||
* -checkdrive inquire drive CD capabilities: Inquire. (line 12)
|
||||
* -data explicitely announce a data track: SetBurn. (line 155)
|
||||
* -dummy control write simulation: SetBurn. (line 97)
|
||||
* -eject finally eject drive tray: SetBurn. (line 194)
|
||||
* -help print sparse overview of options: Verbous. (line 32)
|
||||
* -data explicitely announce a data track: SetBurn. (line 159)
|
||||
* -dummy control write simulation: SetBurn. (line 101)
|
||||
* -eject finally eject drive tray: SetBurn. (line 198)
|
||||
* -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 131)
|
||||
(line 135)
|
||||
* -msinfo retrieve multi-session info: Inquire. (line 48)
|
||||
* -multi keep media appendable after burn run: SetBurn. (line 80)
|
||||
* -nopad disable adding of bytes to end of track: SetBurn. (line 147)
|
||||
* -pad add 15 blocks to end of track: SetBurn. (line 150)
|
||||
* -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)
|
||||
* -toc inquire medium content: Inquire. (line 25)
|
||||
* -v increase program verbosity: Verbous. (line 16)
|
||||
* -V log SCSI command transactions to stderr: Verbous. (line 21)
|
||||
* -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 105)
|
||||
(line 109)
|
||||
* 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)
|
||||
* fs= set program fifo size: SetBurn. (line 161)
|
||||
* padsize= add bytes to end of track: SetBurn. (line 139)
|
||||
* speed= set write speed: SetBurn. (line 177)
|
||||
* fs= set program fifo size: SetBurn. (line 165)
|
||||
* padsize= add bytes to end of track: SetBurn. (line 143)
|
||||
* speed= set write speed: SetBurn. (line 181)
|
||||
* stdio_sync= control stdio buffer: NonCdrecord. (line 61)
|
||||
* stream_recording= try to get full speed on DVD-RAM, BD: NonCdrecord.
|
||||
(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.
|
||||
(line 54)
|
||||
|
||||
@ -844,23 +855,23 @@ File: xorrecord.info, Node: ConceptIdx, Prev: CommandIdx, Up: Top
|
||||
|