shithub: gefs

Download patch

ref: 15450aaf275427707be1c27a7cf8ece53a136014
parent: 19dc7164950ad60ac727482b9abb82badf6364eb
author: Michael Forney <[email protected]>
date: Wed Mar 2 03:46:34 EST 2022

fs: update mtime on write

--- a/fs.c
+++ b/fs.c
@@ -1609,6 +1609,10 @@
 		p += 8;
 		f->dent->length = m->offset+m->count;
 	}
+	sbuf[0] |= Owmtime;
+	f->dent->mtime = nsec();
+	PBIT64(p, f->dent->mtime);
+	p += 8;
 	sbuf[0] |= Owmuid;
 	PBIT32(p, f->uid);
 	p += 4;