shithub: gefs

Download patch

ref: 0630e7982513a669eeaa8a7429372ee5338e2d67
parent: ac3ddb687ea2f6dde774292d1146210705821bbc
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Apr 29 19:34:58 EDT 2023

blk: don't abort on corrupt blocks

this was early detection; we want to start letting
higher levels handle this.

--- a/blk.c
+++ b/blk.c
@@ -843,7 +843,6 @@
 	if((flg&GBnochk) == 0 && h != bp.hash){
 		fprint(2, "corrupt block %p %B: %.16llux != %.16llux\n", b, bp, h, bp.hash);
 		qunlock(&fs->blklk[i]);
-		abort();
 		return nil;
 	}
 	b->bp.hash = h;