summaryrefslogtreecommitdiff
path: root/c_src/cmd_format.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_format.c
parentc074341f160ca7d7c1f3149f8cd027ae825da165 (diff)
posix_to_bcachefs: cleanup
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_format.c')
-rw-r--r--c_src/cmd_format.c4
1 files changed, 2 insertions, 2 deletions
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[])