Extended -as cdrecord blank= by blank type format_overwrite
This commit is contained in:
parent
66616027c2
commit
573580d8ef
@ -7111,7 +7111,8 @@ static char blank_help[][80]= {
|
|||||||
"\tfast\t\tminimally blank the entire disk",
|
"\tfast\t\tminimally blank the entire disk",
|
||||||
"\tminimal\t\tminimally blank the entire disk",
|
"\tminimal\t\tminimally blank the entire disk",
|
||||||
"\tdeformat\t\tblank a formatted DVD-RW",
|
"\tdeformat\t\tblank a formatted DVD-RW",
|
||||||
"\tdeformat_quickest\t\tminimally blank a formatted DVD-RW to DAO only",
|
"\tdeformat_quickest\tminimally blank a formatted DVD-RW to DAO only",
|
||||||
|
"\tformat_overwrite\tformat a DVD-RW to \"Restricted Overwrite\"",
|
||||||
"@End_of_helptexT@"
|
"@End_of_helptexT@"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -7177,6 +7178,8 @@ no_volunteer:;
|
|||||||
strcmp(cpt,"deformat_quickest")==0 ||
|
strcmp(cpt,"deformat_quickest")==0 ||
|
||||||
strcmp(cpt,"deformat_sequential_quickest")==0) {
|
strcmp(cpt,"deformat_sequential_quickest")==0) {
|
||||||
strcpy(blank_mode, cpt);
|
strcpy(blank_mode, cpt);
|
||||||
|
} else if(strcmp(cpt,"format_overwrite")==0) {
|
||||||
|
strcpy(blank_mode, "format_overwrite");
|
||||||
} else {
|
} else {
|
||||||
sprintf(xorriso->info_text,
|
sprintf(xorriso->info_text,
|
||||||
"-as %s: blank=%s not supported. See blank=help .",
|
"-as %s: blank=%s not supported. See blank=help .",
|
||||||
@ -7352,7 +7355,11 @@ no_volunteer:;
|
|||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
goto ex;
|
goto ex;
|
||||||
}
|
}
|
||||||
if(blank_mode[0]) {
|
if(strcmp(blank_mode, "format_overwrite")==0) {
|
||||||
|
ret= Xorriso_option_blank(xorriso, "fast", 1);
|
||||||
|
if(ret<=0)
|
||||||
|
goto ex;
|
||||||
|
} else if(blank_mode[0]) {
|
||||||
ret= Xorriso_option_blank(xorriso, blank_mode, 0);
|
ret= Xorriso_option_blank(xorriso, blank_mode, 0);
|
||||||
if(ret<=0)
|
if(ret<=0)
|
||||||
goto ex;
|
goto ex;
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2008.06.27.124201"
|
#define Xorriso_timestamP "2008.06.27.130235"
|
||||||
|
Loading…
Reference in New Issue
Block a user