btrfsck: decode error properly
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 28 Aug 2011 11:23:24 +0000 (14:23 +0300)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:59 +0000 (09:18 -0400)
commit3d7c94cfec7347e663106d2ca9db2b60dc9d8213
tree7159c5fe581a53402f418c5b4b5e670140a3d340
parenta8b624eae7c358d67a35e847bd25c29f846046f9
btrfsck: decode error properly

check_mounted() returns kernel-style negative errors.
Patch drops sign for strerror().

Before the patch:
check_mounted(): Could not open /dev/sdb2
Could not check mount status: Unknown error 18446744073709551603

After the patch:
check_mounted(): Could not open /dev/sdb2
Could not check mount status: Permission denied

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
btrfs-select-super.c
btrfs-zero-log.c
btrfsck.c