Update ctime/mtime on write.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Wed, 26 Aug 2009 22:47:38 +0000 (15:47 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Wed, 26 Aug 2009 22:47:38 +0000 (15:47 -0700)
inode.c

diff --git a/inode.c b/inode.c
index aa822b7..1c6a083 100644 (file)
--- a/inode.c
+++ b/inode.c
@@ -161,5 +161,5 @@ void bluesky_file_truncate(BlueSkyInode *inode, uint64_t size)
     /* TODO: Zero out partial blocks if needed? */
 
     inode->size = size;
-    inode->change_count++;
+    bluesky_inode_update_ctime(inode, 1);
 }