+/* Update an inode to indicate that a modification was made. This increases
+ * the change counter, updates the ctime to the current time, and optionally
+ * updates the mtime. */
+void bluesky_inode_update_ctime(BlueSkyInode *inode, gboolean update_mtime)
+{
+ int64_t now = bluesky_get_current_time();
+ inode->change_count++;
+ inode->ctime = now;
+ if (update_mtime)
+ inode->mtime = now;
+}
+