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>
This commit is contained in:
Qu Wenruo 2017-02-21 16:34:32 +08:00 committed by David Sterba
parent 7fe1e45258
commit 3aed1a1ced

View File

@ -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);