From b02c3e9682fe024f4e2dea2710c772a60fa39c40 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 6 Jul 2025 13:20:27 -0400 Subject: posix_to_bcachefs: cleanup Signed-off-by: Kent Overstreet --- c_src/cmd_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c_src/cmd_format.c') diff --git a/c_src/cmd_format.c b/c_src/cmd_format.c index d0c56882..d494c357 100644 --- a/c_src/cmd_format.c +++ b/c_src/cmd_format.c @@ -102,12 +102,12 @@ static const struct option format_opts[] = { }; #undef x -static void build_fs(struct bch_fs *c, const char *src_path) +static int build_fs(struct bch_fs *c, const char *src_path) { struct copy_fs_state s = {}; int src_fd = xopen(src_path, O_RDONLY|O_NOATIME); - copy_fs(c, src_fd, src_path, &s, 0); + return copy_fs(c, &s, src_fd, src_path); } int cmd_format(int argc, char *argv[]) -- cgit v1.2.3