summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-08-23 19:43:20 +0200
committerDavid Sterba <dsterba@suse.com>2016-08-24 14:37:36 +0200
commit9135ee92747e8c24cba13ef772c3e6fdc73c181d (patch)
treea705326809b81e618a73fb4ac56a0fd92b81ea28
parentef0db7e7488d231e77a86a7670e5b3401c2f617d (diff)
btrfs-progs: convert: reword message when conversion fails
The filesystem will not be finalized, no difference if it's before or after the chunk mapping fixups. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--btrfs-convert.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/btrfs-convert.c b/btrfs-convert.c
index 9e048054..7a7d66a9 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -2325,7 +2325,6 @@ static int do_convert(const char *devname, int datacsum, int packing,
{
int ret;
int fd = -1;
- int is_btrfs = 0;
u32 blocksize;
u64 total_bytes;
struct btrfs_root *root;
@@ -2473,7 +2472,6 @@ static int do_convert(const char *devname, int datacsum, int packing,
error("unable to migrate super block: %d", ret);
goto fail;
}
- is_btrfs = 1;
root = open_ctree_fd(fd, devname, 0,
OPEN_CTREE_WRITES | OPEN_CTREE_FS_PARTIAL);
@@ -2491,11 +2489,8 @@ fail:
clean_convert_context(&cctx);
if (fd != -1)
close(fd);
- if (is_btrfs)
- warning(
-"an error occurred during chunk mapping fixup, filesystem mountable but not finalized");
- else
- error("conversion aborted");
+ warning(
+"an error occurred during conversion, filesystem is partially created but not finalized and not mountable");
return -1;
}