ref: 2c5178fcd862c6d75ed82a08a1aff5573b41b912
parent: 18b2896645d65b8daad467374f51a778272f9dd8
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 28 23:23:26 EST 2024
blk: print error on sync failure
--- a/blk.c
+++ b/blk.c
@@ -1058,6 +1058,11 @@
Qent qe;
q = p;
+ if(waserror()){
+ aincl(&fs->rdonly, 1);
+ fprint(2, "error syncing: %s\n", errmsg());
+ return;
+ }
while(1){
qe = qpop(q);
switch(qe.op){
@@ -1087,6 +1092,6 @@
default:
abort();
}
- assert(estacksz() == 0);
+ assert(estacksz() == 1);
}
}