btrfs-progs: check: error or return value of repair_root_items()
authorSu Yue <suy.fnst@cn.fujitsu.com>
Wed, 27 Sep 2017 06:34:38 +0000 (14:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:00 +0000 (15:59 +0100)
commitc955dbd7fe67df576667d03f2cd58ff06334524e
tree01c41d3c02b8fc2c739c27280b62205045640012
parentc1be8557658055746e68278fe5a904b627a9d091
btrfs-progs: check: error or return value of repair_root_items()

Return value of repair_root_items():
<0 on error
=0 does nothing
>0 if repair is enabled, N roots are repaired;
   else N roots are corrupted.

In the repair mode, there should be no error if the return value is
bigger than 0. This fixes the test fsck/006 again.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c