btrfs-progs: check: lowmem: Fix false alert on inline compressed extent
commit7fe1e452586e7679dc7cb19118e2384a72236a36
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 21 Feb 2017 08:34:31 +0000 (21 16:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:48 +0000 (8 13:00 +0100)
tree07ad5e761594d2ffb1c1a185a4aa6e878edde01a
parent4a749360cdb55d196750bd7ea3591a3db7f90843
btrfs-progs: check: lowmem: Fix false alert on inline compressed extent

Old lowmem check doesn't check if the inline extent is compressed and
always checks extent numbytes against inline item size.

And when it finds the extent numbytes mismatch with inline item size it
doesn't output any error message, just return error silently, making it
quite hard to debug.

Fix it by only checking extent numbytes against inline item size when
the extent is not compressed, and output error message.

Reported-by: Christoph Anton Mitterer <calestyo@scientia.net>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c