diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-13 08:42:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-13 10:14:23 -0400 |
commit | bd3e0742afdb2233dbe5d261df9f0b3e8e16a3c6 (patch) | |
tree | dc5d205195d055ca320fe31e08ea2aaa48def793 /c_src | |
parent | de5af03b9deb7ce2b5ae6bc8bd01873a1b2639d1 (diff) |
cmd_format: make build_fs() static
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src')
-rw-r--r-- | c_src/cmd_format.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c_src/cmd_format.c b/c_src/cmd_format.c index d8714888..b342ae61 100644 --- a/c_src/cmd_format.c +++ b/c_src/cmd_format.c @@ -112,7 +112,7 @@ u64 read_flag_list_or_die(char *opt, const char * const list[], return v; } -void build_fs(struct bch_fs *c, const char *src_path) +static void 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); @@ -320,10 +320,8 @@ int cmd_format(int argc, char *argv[]) die("error opening %s: %s", device_paths.data[0], bch2_err_str(PTR_ERR(c))); - if (opts.source) { + if (opts.source) build_fs(c, opts.source); - } - bch2_fs_stop(c); } |