code: plan9front

Download patch

ref: 220dfb87f561f73ec1d154e08511332a660d1119
parent: 5494e2fa4ea1347b5676b25860d0abf2b850d524
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Feb 16 13:30:01 EST 2024

ext4srv: update inode change time on wstat

--- a/sys/src/cmd/ext4srv/ext4srv.c
+++ b/sys/src/cmd/ext4srv/ext4srv.c
@@ -640,6 +640,9 @@
 	if(r->d.gid != nil && r->d.gid[0] != 0 && ext4_owner_set(mp, a->path, uid, gid) < 0)
 		goto error;
 
+	/* inode changed - update the time */
+	ext4_ctime_set(mp, a->path, time(nil));
+
 	respond(r, nil);
 	return;