Skip to contentSkip to conversation

btrfs-progs: fsck: Continue check even if we find space cache problem

PATCH New Qu Wenruo 1 participant 1 message Jan 15, 2018 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 btrfs-progs: fsck: Continue check even if we find space cache problem

Space cache itself is not a fatal part of btrfs (especially for v1 space cache), and if we find something wrong it can be caused by other more serious problem.

So continue to check more important trees even we found something wrong in free space cache.

---
 cmds-check.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
cmds-check.c +4 -1
index 7fc30da83ea1..6083ac0dd032 100644
@@ -15000,7 +15000,10 @@ int cmd_check(int argc, char **argv)
 			error("errors found in free space tree");
 		else
 			error("errors found in free space cache");
-		goto out;
+		/*
+		 * Space cache problem is not fatal, and normally indicates more
+		 * serious problem, so continue check to expose the cause.
+		 */
 	}
 
 	/*
Signature · 1 line
2.15.1