projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe1e45
)
btrfs-progs: check: lowmem: Fix silent error if first inode item missing
author
Qu Wenruo
<quwenruo@cn.fujitsu.com>
Tue, 21 Feb 2017 08:34:32 +0000
(16:34 +0800)
committer
David Sterba
<dsterba@suse.com>
Wed, 8 Mar 2017 12:00:49 +0000
(13:00 +0100)
If first inode item is missing, lowmem check will detect it but does not
output any error message.
Add error message for it.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c
patch
|
blob
|
history
diff --git
a/cmds-check.c
b/cmds-check.c
index
3d0b123
..
c391453
100644
(file)
--- a/
cmds-check.c
+++ b/
cmds-check.c
@@
-4997,6
+4997,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);