btrfs-progs: Fix the return value of btrfs-map-logical
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 1 Aug 2013 05:35:33 +0000 (13:35 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 3 Sep 2013 17:40:50 +0000 (19:40 +0200)
commit7ea01da9c878d5223886ee11859f2e91d00a69a0
tree9861b150524e2003779ef43cd878c375752c2e41
parenteda2178b995a637529b95e748be9dd9460ec4d89
btrfs-progs: Fix the return value of btrfs-map-logical

The ret variant in the main function is not changed so even problems
happen, return value is still 0.
The patch fixs the minor bug and return 1 if any problems happen.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-map-logical.c