New -stdio_sync option "end", -as mkisofs default is now --stdio_sync "off"
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
|
||||
/* xorriso - creates, loads, manipulates and burns ISO 9660 filesystem images.
|
||||
|
||||
Copyright 2007-2013 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
Copyright 2007-2014 Thomas Schmitt, <scdbackup@gmx.net>
|
||||
|
||||
Provided under GPL version 2 or later.
|
||||
|
||||
@ -1445,26 +1445,28 @@ int Xorriso_option_status_history_max(struct XorrisO *xorriso, int num,
|
||||
}
|
||||
|
||||
|
||||
/* Option -stdio_sync "on"|"off"|size */
|
||||
/* Option -stdio_sync "on"|"off"|"end"|size */
|
||||
int Xorriso_option_stdio_sync(struct XorrisO *xorriso, char *rythm, int flag)
|
||||
{
|
||||
double num;
|
||||
|
||||
if(strcmp(rythm, "default") == 0 || strcmp(rythm, "on") == 0)
|
||||
if(strcmp(rythm, "default") == 0 || strcmp(rythm, "on") == 0) {
|
||||
num= 0;
|
||||
if(strcmp(rythm, "off") == 0)
|
||||
} else if(strcmp(rythm, "off") == 0) {
|
||||
num= -1;
|
||||
else
|
||||
num = Scanf_io_size(rythm, 0);
|
||||
if(num > 0)
|
||||
num /= 2048;
|
||||
if(num != -1 && num != 0 && (num < 32 || num > 512 * 1024)) {
|
||||
} else if(strcmp(rythm, "end") == 0) {
|
||||
num= 1;
|
||||
} else {
|
||||
num = Scanf_io_size(rythm, 0) / 2048;
|
||||
if(num < 32 || num > 512 * 1024) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-stdio_sync : Bad size. Acceptable are -1, 0, 32k ... 1g");
|
||||
"-stdio_sync : Bad size. Use: 64k to 1g, \"on\", \"off\", \"end\"");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(0);
|
||||
} else
|
||||
xorriso->stdio_sync= num;
|
||||
}
|
||||
}
|
||||
xorriso->stdio_sync= num;
|
||||
xorriso->stdio_sync_is_default= 0;
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user