btrfs-progs: add the error message when open fails
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 9 Jun 2016 01:23:15 +0000 (10:23 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 13 Jul 2016 16:44:52 +0000 (18:44 +0200)
commitdabd2835836cd77c765e3f500c349ffe126f458c
tree64238efb69801699f242c77838444b894bf5280d
parente67219255cca7b8e09789b6ca725fc4e9780da73
btrfs-progs: add the error message when open fails

When open in btrfs_open_devices failed, only the following message is
displayed. Therefore the user doesn't understand the reason why open
failed.

  # btrfs check /dev/sdb8
  Couldn't open file system

This patch adds the error message when open fails.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c