diff options
author | Qu Wenruo <wqu@suse.com> | 2018-09-14 15:25:05 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-25 16:11:40 +0200 |
commit | 23eed7acfdc61f257da6744329dc5dbbb2da4493 (patch) | |
tree | 738877752b37efb5e5250e7b83bdf067a8e3d460 /tests | |
parent | 6a659dbfde228f3e5287f445816b29969a482fe8 (diff) |
btrfs-progs: convert: Output meaningful error messages for create_image
When convert failed, the error messsage would look like:
create btrfs filesystem:
blocksize: 4096
nodesize: 16384
features: extref, skinny-metadata (default)
creating ext2 image file
ERROR: failed to create ext2_saved/image: -1
WARNING: an error occurred during conversion, filesystem is partially
created but not finalized and not mountable
We can only know something wrong happened during "ext2_saved/image" file
creation, but unable to know what exactly went wrong.
This patch will add the following error messages for create_image() and
its callee:
1) Sanity test error
2) Csum calculation error
3) Free ino number allocation error
4) Inode creation error
5) Inode mode change error
6) Inode link error
With all these error messages, we should be pretty easy to locate the
error without extra debugging.
Reported-by: Serhat Sevki Dincer <jfcgauss@gmail.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions