diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2017-02-21 16:34:32 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:49 +0100 |
commit | 3aed1a1ced3b1d45c83abc34d32677edc7cd422f (patch) | |
tree | 40a00cebee765cfd10d8225e02937f7bc731d7ae /cmds-check.c | |
parent | 7fe1e452586e7679dc7cb19118e2384a72236a36 (diff) |
btrfs-progs: check: lowmem: Fix silent error if first inode item missing
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>
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds-check.c b/cmds-check.c index 3d0b1231..c3914531 100644 --- 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); |