summaryrefslogtreecommitdiff
path: root/c_src/cmd_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/cmd_image.c')
-rw-r--r--c_src/cmd_image.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c_src/cmd_image.c b/c_src/cmd_image.c
index dca01825..a35ccd6f 100644
--- a/c_src/cmd_image.c
+++ b/c_src/cmd_image.c
@@ -273,7 +273,9 @@ static void image_create(struct bch_opt_strs fs_opt_strs,
goto err;
struct copy_fs_state s = {};
- copy_fs(c, src_fd, src_path, &s, 0);
+ ret = copy_fs(c, &s, src_fd, src_path);
+ if (ret)
+ goto err;
if (verbosity > 1)
printf("moving non-alloc btree to primary device\n");