X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky.h;h=41618b532ad12b45715db0739c67fd23c8f9907d;hb=d97af3e024253910cd60350e0504ea64711fbb00;hp=1d9f55c30007f403e6a71841b7229a560cd36b3e;hpb=b34b242b34388a3eb26bad5135cdf629ab69b70a;p=bluesky.git diff --git a/bluesky/bluesky.h b/bluesky/bluesky.h index 1d9f55c..41618b5 100644 --- a/bluesky/bluesky.h +++ b/bluesky/bluesky.h @@ -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. @@ -231,6 +237,8 @@ gint bluesky_dirent_compare(gconstpointer a, gconstpointer b, void bluesky_flushd_invoke(BlueSkyFS *fs); +void bluesky_debug_dump(BlueSkyFS *fs); + #ifdef __cplusplus } #endif