summaryrefslogtreecommitdiff
path: root/c_src/cmd_image.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-07-06 13:20:27 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-07-12 19:49:41 -0400
commitb02c3e9682fe024f4e2dea2710c772a60fa39c40 (patch)
treeb8be3e06fab329b3063108f3669f87c160697d80 /c_src/cmd_image.c
parentc074341f160ca7d7c1f3149f8cd027ae825da165 (diff)
posix_to_bcachefs: cleanup
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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");