mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-09 00:00:17 +03:00
cmd_format: make build_fs() static
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
de5af03b9d
commit
bd3e0742af
@ -112,7 +112,7 @@ u64 read_flag_list_or_die(char *opt, const char * const list[],
|
|||||||
return v;
|
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 = {};
|
struct copy_fs_state s = {};
|
||||||
int src_fd = xopen(src_path, O_RDONLY|O_NOATIME);
|
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],
|
die("error opening %s: %s", device_paths.data[0],
|
||||||
bch2_err_str(PTR_ERR(c)));
|
bch2_err_str(PTR_ERR(c)));
|
||||||
|
|
||||||
if (opts.source) {
|
if (opts.source)
|
||||||
build_fs(c, opts.source);
|
build_fs(c, opts.source);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bch2_fs_stop(c);
|
bch2_fs_stop(c);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user