X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fbluesky-private.h;h=a4c8a5ea0cddffba4e49515ee0b351bbf9739994;hb=579ee9ab24b7cd3981d927f69ae919dcfaeac5ff;hp=e51c40f74b6dbde1240425dc97da7ad83fbdcd07;hpb=a5b5871865301712bc22ffc3d86a425dc0b45991;p=bluesky.git diff --git a/bluesky/bluesky-private.h b/bluesky/bluesky-private.h index e51c40f..a4c8a5e 100644 --- a/bluesky/bluesky-private.h +++ b/bluesky/bluesky-private.h @@ -27,7 +27,7 @@ BlueSkyFS *bluesky_new_fs(gchar *name); void bluesky_serialize_superblock(GString *out, BlueSkyFS *fs); BlueSkyFS *bluesky_deserialize_superblock(const gchar *buf); void bluesky_serialize_inode(GString *out, BlueSkyInode *inode); -BlueSkyInode *bluesky_deserialize_inode(BlueSkyFS *fs, const gchar *buf); +gboolean bluesky_deserialize_inode(BlueSkyInode *inode, const gchar *buf); /* Storage layer. Requests can be performed asynchronously, so these objects * help keep track of operations in progress. */ @@ -64,6 +64,8 @@ typedef struct { int result; /* Result code; 0 for success. */ struct BlueSkyNotifierList *notifiers; + bluesky_time_hires start_time; /* Time operation was submitted. */ + gpointer store_private; /* For use by the storage implementation */ } BlueSkyStoreAsync; @@ -112,6 +114,11 @@ void bluesky_store_add_barrier(BlueSkyStoreAsync *barrier, void bluesky_inode_start_sync(BlueSkyInode *inode, BlueSkyStoreAsync *barrier); +void bluesky_block_flush(BlueSkyFS *fs, BlueSkyBlock *block, + BlueSkyStoreAsync *barrier); +void bluesky_file_flush(BlueSkyInode *inode, BlueSkyStoreAsync *barrier); +void bluesky_file_drop_cached(BlueSkyInode *inode); + #ifdef __cplusplus } #endif