Add a new option to make caching writethrough instead of writeback.
[bluesky.git] / bluesky / bluesky.h
index 1d9f55c..59814b1 100644 (file)
@@ -21,6 +21,9 @@ extern "C" {
 typedef struct {
     /* Perform all get/put operations synchronously. */
     int synchronous_stores;
+
+    /* Write data in cache immediately after file is modified. */
+    int writethrough_cache;
 } BlueSkyOptions;
 
 extern BlueSkyOptions bluesky_options;
@@ -163,6 +166,9 @@ typedef struct {
     GHashTable *dirhash;        /* Hash table by name for LOOKUP */
     GHashTable *dirhash_folded; /* As above, but case-folded */
     uint64_t parent_inum;       /* inode for ".."; 0 if the root directory */
+
+    /* Symlink-specific fields */
+    gchar *symlink_contents;
 } BlueSkyInode;
 
 /* A directory entry.  The name is UTF-8 and is a freshly-allocated string.