Thread (15 messages) 15 messages, 2 authors, 2017-03-01
STALE3418d

[PATCH v3 06/12] btrfs-progs: lowmem check: Fix silent error if first inode item missing

From: Qu Wenruo <hidden>
Date: 2017-02-21 08:34:47
Subsystem: the rest · Maintainer: Linus Torvalds

If first inode item is missing, lowmem check will detect it but not
output any error message.

Add error message for it.

Signed-off-by: Qu Wenruo <redacted>
---
 cmds-check.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/cmds-check.c b/cmds-check.c
index cf5a08ce..7d273623 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -5001,6 +5001,8 @@ static int check_fs_first_inode(struct btrfs_root *root, unsigned int ext_ref)
 	if (ret > 0) {
 		ret = 0;
 		err |= INODE_ITEM_MISSING;
+		error("first inode item of root %llu is missing",
+		      root->objectid);
 	}
 
 	err |= check_inode_item(root, &path, ext_ref);
-- 
2.11.1


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help