btrfs-progs: restore: output resason why it fails to read root
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Thu, 19 Jun 2014 01:27:07 +0000 (09:27 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 12:43:10 +0000 (14:43 +0200)
commit4cb5168ba61d87b9a9dea371c222880f68b5d6db
tree803f3a5fff2a208e723a00e4cb3604f197c2f851
parentc2059f765d4ccd03072bdbd808687b2d4298c433
btrfs-progs: restore: output resason why it fails to read root

Previously if restore could not read users specified fs root, it would
output following message:

 Error reading root

With this patch, it will output message like:

 Fail to read root 1000: No such file or directory

Signed-off-byr Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-restore.c