1 /* Blue Sky: File Systems in the Cloud
3 * Copyright (C) 2009 The Regents of the University of California
4 * Written by Michael Vrable <mvrable@cs.ucsd.edu>
14 #include "bluesky-private.h"
16 BlueSkyOptions bluesky_options;
18 /* Environment variables that can be used to initialize settings. */
23 {"BLUESKY_OPT_SYNC_STORES", &bluesky_options.synchronous_stores},
24 {"BLUESKY_OPT_WRITETHROUGH", &bluesky_options.writethrough_cache},
25 {"BLUESKY_OPT_SYNC_INODE_FETCH", &bluesky_options.sync_inode_fetches},
26 {"BLUESKY_OPT_SYNC_FRONTENDS", &bluesky_options.sync_frontends},
30 /* BlueSky library initialization. */
32 void bluesky_store_init_s3(void);
34 /* Initialize the BlueSky library and dependent libraries. */
35 void bluesky_init(void)
40 for (int i = 0; option_table[i].env != NULL; i++) {
41 const char *val = getenv(option_table[i].env);
44 g_print("Option %s set to %d\n", option_table[i].env, v);
45 *option_table[i].option = atoi(val);
50 bluesky_store_init_s3();