Extended -as cdrecord blank= by blank type format_overwrite

This commit is contained in:
Thomas Schmitt 2008-06-27 13:02:00 +00:00
parent e35f0b6841
commit 40d9dcf8bb
2 changed files with 10 additions and 3 deletions

View File

@ -7111,7 +7111,8 @@ static char blank_help[][80]= {
"\tfast\t\tminimally blank the entire disk",
"\tminimal\t\tminimally blank the entire disk",
"\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@"
};
@ -7177,6 +7178,8 @@ no_volunteer:;
strcmp(cpt,"deformat_quickest")==0 ||
strcmp(cpt,"deformat_sequential_quickest")==0) {
strcpy(blank_mode, cpt);
} else if(strcmp(cpt,"format_overwrite")==0) {
strcpy(blank_mode, "format_overwrite");
} else {
sprintf(xorriso->info_text,
"-as %s: blank=%s not supported. See blank=help .",
@ -7352,7 +7355,11 @@ no_volunteer:;
if(ret<=0)
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);
if(ret<=0)
goto ex;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.06.27.124201"
#define Xorriso_timestamP "2008.06.27.130235"