btrfsck: Exit and print error message when not able to open a device
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Wed, 21 Jan 2009 18:59:36 +0000 (13:59 -0500)
committerChris Mason <chris.mason@oracle.com>
Wed, 21 Jan 2009 18:59:36 +0000 (13:59 -0500)
commitaf250420caf71a4d787891d8ae49f56299a01201
tree0891e574a45e3967544ba0cdf8bc3d592f0c44ea
parented62c2b0c26381770c33fbd0690d638627de511d
btrfsck: Exit and print error message when not able to open a device

If btrfsck is not able to open a device, it segfaults. This fixes it and
prints an error message too.
btrfsck.c
disk-io.c