Some changes to support asynchronous fetching of inodes.
[bluesky.git] / bluesky / init.c
1 /* Blue Sky: File Systems in the Cloud
2  *
3  * Copyright (C) 2009  The Regents of the University of California
4  * Written by Michael Vrable <mvrable@cs.ucsd.edu>
5  *
6  * TODO: Licensing
7  */
8
9 #include <stdint.h>
10 #include <stdlib.h>
11 #include <glib.h>
12 #include <string.h>
13
14 #include "bluesky-private.h"
15
16 BlueSkyOptions bluesky_options;
17
18 /* BlueSky library initialization. */
19
20 void bluesky_store_init_s3(void);
21
22 /* Initialize the BlueSky library and dependent libraries. */
23 void bluesky_init(void)
24 {
25     g_thread_init(NULL);
26     bluesky_crypt_init();
27
28     bluesky_options.synchronous_stores = 0;
29     bluesky_options.writethrough_cache = 0;
30     bluesky_options.async_inode_fetches = 0;
31
32     bluesky_store_init();
33     bluesky_store_init_s3();
34 }