X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky.h;h=54e8450186139cfe37cb062a7b078d06f33e36fb;hb=a82b60b3b683840a7074110831bcbaa16a40f0eb;hp=60a3842f9899e2d6f29a92d451acf195a0918ab2;hpb=870ff381b99c54615457d1cea92e710bc68e194b;p=bluesky.git diff --git a/bluesky/bluesky.h b/bluesky/bluesky.h index 60a3842..54e8450 100644 --- a/bluesky/bluesky.h +++ b/bluesky/bluesky.h @@ -33,6 +33,9 @@ typedef struct { /* Should frontends handle requests serially or allow operations to proceed * in parallel? */ int sync_frontends; + + /* Target size of the disk cache at the proxy, in kilobytes. */ + int cache_size; } BlueSkyOptions; extern BlueSkyOptions bluesky_options; @@ -175,6 +178,10 @@ typedef struct { /* Mapping of object identifiers (blocks, inodes) to physical location (in * the local cache or in the logs in the cloud). */ GHashTable *locations; + + /* The inode map, which maps inode numbers to the location of the most + * recent version. */ + GSequence *inode_map; } BlueSkyFS; /* Inode number of the root directory. */