X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Finit.c;h=2ac2f23f381d65caa9f5ae8b4740ccec6b8adf13;hb=7795e004d36e779abdf77f8771488595839e4bee;hp=1db4283590ceee40cc274ef5cb40c2a0d4226363;hpb=774148ec71a99b6acf1023fd990ea975a6b92780;p=bluesky.git diff --git a/bluesky/init.c b/bluesky/init.c index 1db4283..2ac2f23 100644 --- a/bluesky/init.c +++ b/bluesky/init.c @@ -15,7 +15,9 @@ int bluesky_verbose = 0; -BlueSkyOptions bluesky_options; +BlueSkyOptions bluesky_options = { + .cache_size = 1024*1024, // Default cache size is 1 GiB +}; /* Maximum number of threads to use in any particular thread pool, or -1 for no * limit */ @@ -47,6 +49,7 @@ static struct { {"BLUESKY_OPT_WRITETHROUGH", &bluesky_options.writethrough_cache}, {"BLUESKY_OPT_SYNC_INODE_FETCH", &bluesky_options.sync_inode_fetches}, {"BLUESKY_OPT_SYNC_FRONTENDS", &bluesky_options.sync_frontends}, + {"BLUESKY_CACHE_SIZE", &bluesky_options.cache_size}, {NULL, NULL} };