btrfs-progs: handle error in the btrfs_prepare_device
authorAnand Jain <anand.jain@oracle.com>
Wed, 18 Dec 2013 04:07:55 +0000 (12:07 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:21 +0000 (08:22 -0800)
commitd89437893266332cce295c06c9d00b79aa5b4dd6
tree415b50a673c6c6e49c5bc3403f654ddd5631b9ab
parentb5a09775c6e3dd6c842764b026e1764a057b7dfd
btrfs-progs: handle error in the btrfs_prepare_device

this patch will handle the strerror reporting of the error instead of
printing errno,  and also replaced the BUG_ON with the error handling

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-device.c
cmds-replace.c
mkfs.c
utils.c