shithub: 9ferno

Download patch

ref: d0b0ee917ccbc205a52a7403543a6201a56c25bb
parent: 7e0a4aa1580becd93c8963ffc029e57fe361276b
author: 9ferno <gophone2015@gmail.com>
date: Fri Aug 6 10:53:55 EDT 2021

more debug prints

--- a/appl/cmd/disk/kfs.b	Fri Aug  6 10:53:26 2021
+++ b/appl/cmd/disk/kfs.b	Fri Aug  6 10:53:55 2021
@@ -444,6 +444,9 @@
 	if(wrencheck(wrenfd))
 		error("kfs super/root in trouble");
 
+	if(debug)
+		sys->print("ream %d readonly %d !read %d !readonly %d\n",
+					ream, readonly, !ream, !readonly);
 	if(!ream && !readonly && !superok(0)){
 		sys->print("kfs needs check\n");
 		if(!nocheck)
@@ -1959,8 +1962,10 @@
 	sb := Superb.get(thedevice, Bread|Bmod|Bimm);
 	ok := sb.fsok;
 	sb.fsok = set;
-	if(debug)
+	if(debug){
+		sys->print("superok ok %d\n", ok);
 		sb.print();
+	}
 	sb.touched();
 	sb.put();
 	return ok;