ref: 1bfbecd960a9a1b3f932a335025291d15d606455
parent: 28b95adea25a97bb212fae8e7692ff6f7e7b569f
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Apr 1 21:14:02 EDT 2024
fs: always sync when halting.
--- a/fs.c
+++ b/fs.c
@@ -2355,7 +2355,7 @@
switch(am->op){
case AOsync:
tracem("syncreq");
- if(!fs->snap.dirty)
+ if(!fs->snap.dirty && !am->halt)
continue;
if(waserror()){
fprint(2, "sync error: %s\n", errmsg());