New option --no_load
This commit is contained in:
parent
b7fdd82cf7
commit
0562b332f9
@ -2,7 +2,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 CDRSKIN 1 "Version 1.2.3, Jan 13, 2012"
|
.TH CDRSKIN 1 "Version 1.2.5, Jul 26, 2012"
|
||||||
.\" 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:
|
||||||
@ -1247,6 +1247,11 @@ option which ends by "=". The list is ended by an empty line.
|
|||||||
Like option -toc but marking each session start by a line "first: X last: Y"
|
Like option -toc but marking each session start by a line "first: X last: Y"
|
||||||
and each session end by "track:lout ...".
|
and each session end by "track:lout ...".
|
||||||
.TP
|
.TP
|
||||||
|
.BI \--no_load
|
||||||
|
When aquiring the optical drive, do not try to load its tray. This yields the
|
||||||
|
same behavior for desktop drives with tray loader as is shown by laptop drives
|
||||||
|
which usually lack a motorized tray loader.
|
||||||
|
.TP
|
||||||
.BI \--no_rc
|
.BI \--no_rc
|
||||||
Only if used as first command line argument this option prevents reading and
|
Only if used as first command line argument this option prevents reading and
|
||||||
interpretation of eventual startup files. See section FILES below.
|
interpretation of eventual startup files. See section FILES below.
|
||||||
|
@ -2867,6 +2867,7 @@ set_dev:;
|
|||||||
printf(" --no_abort_handler exit even if the drive is in busy state\n");
|
printf(" --no_abort_handler exit even if the drive is in busy state\n");
|
||||||
printf(" --no_blank_appendable refuse to blank appendable CD-RW\n");
|
printf(" --no_blank_appendable refuse to blank appendable CD-RW\n");
|
||||||
printf(" --no_convert_fs_adr only literal translations of dev=\n");
|
printf(" --no_convert_fs_adr only literal translations of dev=\n");
|
||||||
|
printf(" --no_load do not try to load the drive tray\n");
|
||||||
printf(
|
printf(
|
||||||
" --no_rc as first argument: do not read startup files\n");
|
" --no_rc as first argument: do not read startup files\n");
|
||||||
printf(" --obs_pad pad DVD DAO to full 16 or 32 blocks\n");
|
printf(" --obs_pad pad DVD DAO to full 16 or 32 blocks\n");
|
||||||
@ -3334,7 +3335,7 @@ struct CdrskiN {
|
|||||||
|
|
||||||
int do_scanbus;
|
int do_scanbus;
|
||||||
|
|
||||||
int do_load;
|
int do_load; /* 1= -load , 2= -lock , -1= --no_load */
|
||||||
|
|
||||||
int do_checkdrive;
|
int do_checkdrive;
|
||||||
|
|
||||||
@ -4016,7 +4017,7 @@ int Cdrskin_grab_drive(struct CdrskiN *skin, int flag)
|
|||||||
mem= skin->drive_is_busy;
|
mem= skin->drive_is_busy;
|
||||||
skin->drive_is_busy= 2;
|
skin->drive_is_busy= 2;
|
||||||
ret= burn_drive_scan_and_grab(&(skin->drives),skin->preskin->device_adr,
|
ret= burn_drive_scan_and_grab(&(skin->drives),skin->preskin->device_adr,
|
||||||
!(flag&2));
|
(skin->do_load != -1) && !(flag&2));
|
||||||
skin->drive_is_busy= mem;
|
skin->drive_is_busy= mem;
|
||||||
if(Cdrskin__is_aborting(0)) {
|
if(Cdrskin__is_aborting(0)) {
|
||||||
aborted:;
|
aborted:;
|
||||||
@ -4056,7 +4057,7 @@ aborted:;
|
|||||||
|
|
||||||
mem= skin->drive_is_busy;
|
mem= skin->drive_is_busy;
|
||||||
skin->drive_is_busy= 2;
|
skin->drive_is_busy= 2;
|
||||||
ret= burn_drive_grab(drive,!(flag&2));
|
ret= burn_drive_grab(drive,(skin->do_load != -1) && !(flag&2));
|
||||||
skin->drive_is_busy= mem;
|
skin->drive_is_busy= mem;
|
||||||
if(Cdrskin__is_aborting(0))
|
if(Cdrskin__is_aborting(0))
|
||||||
goto aborted;
|
goto aborted;
|
||||||
@ -8257,6 +8258,9 @@ msifile_equals:;
|
|||||||
} else if(strcmp(argv[i],"--no_convert_fs_adr")==0) {
|
} else if(strcmp(argv[i],"--no_convert_fs_adr")==0) {
|
||||||
/* is handled in Cdrpreskin_setup() */;
|
/* is handled in Cdrpreskin_setup() */;
|
||||||
|
|
||||||
|
} else if(strcmp(argv[i],"--no_load")==0) {
|
||||||
|
skin->do_load= -1;
|
||||||
|
|
||||||
} else if(strcmp(argv[i],"--no_rc")==0) {
|
} else if(strcmp(argv[i],"--no_rc")==0) {
|
||||||
/* is handled in Cdrpreskin_setup() */;
|
/* is handled in Cdrpreskin_setup() */;
|
||||||
|
|
||||||
@ -8830,7 +8834,7 @@ int Cdrskin_run(struct CdrskiN *skin, int *exit_value, int flag)
|
|||||||
fprintf(stderr,"cdrskin: FATAL : -scanbus failed.\n");
|
fprintf(stderr,"cdrskin: FATAL : -scanbus failed.\n");
|
||||||
{*exit_value= 5*(ret<=0); goto ex;}
|
{*exit_value= 5*(ret<=0); goto ex;}
|
||||||
}
|
}
|
||||||
if(skin->do_load) {
|
if(skin->do_load > 0) {
|
||||||
if(Cdrskin__is_aborting(0))
|
if(Cdrskin__is_aborting(0))
|
||||||
goto ex;
|
goto ex;
|
||||||
ret= Cdrskin_grab_drive(skin,8);
|
ret= Cdrskin_grab_drive(skin,8);
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2012.07.20.164346"
|
#define Cdrskin_timestamP "2012.07.26.122909"
|
||||||
|
Loading…
Reference in New Issue
Block a user