X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Ffile.c;h=5f7d9cdcc47da76541f03e4ab68eaaac537f15e5;hb=0a6dbd76f58caad61a494a64e9bd421de61f6aa6;hp=5a4fe9b310ae3966b64b68161d131f01a6b3186e;hpb=fe2b07cf3f79430f9b4d16a8d567ea9b6178d9d2;p=bluesky.git diff --git a/bluesky/file.c b/bluesky/file.c index 5a4fe9b..5f7d9cd 100644 --- a/bluesky/file.c +++ b/bluesky/file.c @@ -111,6 +111,7 @@ void bluesky_file_write(BlueSkyInode *inode, uint64_t offset, } bluesky_inode_update_ctime(inode, 1); + bluesky_inode_flush(inode->fs, inode); } void bluesky_file_read(BlueSkyInode *inode, uint64_t offset, @@ -154,7 +155,7 @@ void bluesky_block_fetch(BlueSkyFS *fs, BlueSkyBlock *block) return; g_print("Fetching block from %s\n", block->ref); - BlueSkyRCStr *string = s3store_get(fs->store, block->ref); + BlueSkyRCStr *string = bluesky_store_get(fs->store, block->ref); bluesky_string_unref(block->data); block->data = bluesky_crypt_decrypt(string, fs->encryption_key); @@ -176,7 +177,7 @@ void bluesky_block_flush(BlueSkyFS *fs, BlueSkyBlock *block) gchar *name = g_strdup(g_checksum_get_string(csum)); g_print("Flushing block as %s\n", name); - s3store_put(fs->store, name, data); + bluesky_store_put(fs->store, name, data); g_free(block->ref); block->ref = name;