Fix to the cleaner when writing out a new inode map.
[bluesky.git] / bluesky / init.c
index 1db4283..2ac2f23 100644 (file)
@@ -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}
 };