Otherwise, some blocks might not have been assigned a name and so
seriaizing the inode will lose data.
{
BlueSkyFS *fs = inode->fs;
+ if (inode->type == BLUESKY_REGULAR)
+ bluesky_file_flush(inode, barrier);
+
GString *buf = g_string_new("");
bluesky_serialize_inode(buf, inode);
BlueSkyRCStr *data = bluesky_string_new_from_gstring(buf);
- if (inode->type == BLUESKY_REGULAR)
- bluesky_file_flush(inode, barrier);
-
char key[64];
sprintf(key, "inode-%016"PRIx64, inode->inum);