New command -data_cache_size
This commit is contained in:
@ -30,6 +30,28 @@
|
||||
#include "xorrisoburn.h"
|
||||
|
||||
|
||||
/* Command -data_cache_size */
|
||||
int Xorriso_option_data_cache_size(struct XorrisO *xorriso, char *num_tiles,
|
||||
char *tile_blocks, int flag)
|
||||
{
|
||||
int ret, blocks= -1, tiles= -1, to_default= 0;
|
||||
|
||||
sscanf(num_tiles, "%d", &tiles);
|
||||
sscanf(tile_blocks, "%d", &blocks);
|
||||
if(strcmp(num_tiles, "default") == 0 || num_tiles[0] == 0)
|
||||
to_default|= 1;
|
||||
if(strcmp(tile_blocks, "default") == 0 || tile_blocks[0] == 0)
|
||||
to_default|= 2;
|
||||
ret= Xorriso_set_data_cache(xorriso, NULL, tiles, blocks, to_default);
|
||||
if(ret > 0) {
|
||||
xorriso->cache_num_tiles= tiles;
|
||||
xorriso->cache_tile_blocks= blocks;
|
||||
xorriso->cache_default= to_default;
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
/* Options -dev , -indev, -outdev */
|
||||
/** @param flag bit0= use as indev
|
||||
bit1= use as outdev
|
||||
@ -1493,6 +1515,8 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" Allow for writing only the usage of optical drives.",
|
||||
" -early_stdio_test \"on\"|\"appendable_wo\"|\"off\"",
|
||||
" Classify stdio drives by effective access permissions.",
|
||||
" -data_cache_size number_of_tiles blocks_per_tile",
|
||||
" Adjust size and granularity of the data read cache.",
|
||||
" -blank \"fast\"|\"all\"|\"deformat\"|\"deformat_quickest\"",
|
||||
" Blank medium resp. invalidate ISO image on medium.",
|
||||
" -close_damaged \"as_needed\"|\"force\"",
|
||||
|
Reference in New Issue
Block a user