summaryrefslogtreecommitdiff
path: root/c_src/cmd_format.c
diff options
context:
space:
mode:
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[])