Inodes are clean immediately after being read from storage.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 25 Jan 2010 18:18:17 +0000 (10:18 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Mon, 25 Jan 2010 18:18:17 +0000 (10:18 -0800)
bluesky/serialize.c

index 6f31dcb..e3abc14 100644 (file)
@@ -152,6 +152,7 @@ BlueSkyInode *bluesky_deserialize_inode(BlueSkyFS *fs, const gchar *buf)
     inode->gid = GUINT32_FROM_LE(raw->gid);
     inode->nlink = GUINT32_FROM_LE(raw->nlink);
     inode->change_count = GUINT64_FROM_LE(raw->change_count);
+    inode->change_commit = inode->change_count;
     inode->atime = GINT64_FROM_LE(raw->atime);
     inode->ctime = GINT64_FROM_LE(raw->ctime);
     inode->mtime = GINT64_FROM_LE(raw->mtime);