New xorriso command -write_type
This commit is contained in:
@ -1922,6 +1922,26 @@ ex:;
|
||||
}
|
||||
|
||||
|
||||
/* Command -write_type */
|
||||
int Xorriso_option_write_type(struct XorrisO *xorriso, char *mode, int flag)
|
||||
{
|
||||
if(strcmp(mode, "auto") == 0)
|
||||
xorriso->do_tao = 0;
|
||||
else if(strcmp(mode, "tao") == 0 || strcmp(mode, "TAO") == 0)
|
||||
xorriso->do_tao = 1;
|
||||
else if(strcmp(mode, "sao") == 0 || strcmp(mode, "SAO") == 0 ||
|
||||
strcmp(mode, "dao") == 0 || strcmp(mode, "DAO") == 0 ||
|
||||
strcmp(mode, "sao/dao") == 0 || strcmp(mode, "SAO/DAO") == 0 )
|
||||
xorriso->do_tao = -1;
|
||||
else {
|
||||
sprintf(xorriso->info_text, "-write_type: unknown mode '%s'", mode);
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
/* Option -xattr "on"|"off" */
|
||||
int Xorriso_option_xattr(struct XorrisO *xorriso, char *mode, int flag)
|
||||
{
|
||||
|
Reference in New Issue
Block a user