summaryrefslogtreecommitdiff
path: root/convert/main.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-01-24 19:36:15 +0100
committerDavid Sterba <dsterba@suse.com>2017-01-27 12:20:43 +0100
commitc855e60f7ef8f980a465bcadc72caeba70fd10b7 (patch)
treea953b93897bfda025b0c36cc30212c35c7b777ce /convert/main.c
parent78e1787c55a28f496d210b2805d84539d86552a1 (diff)
btrfs-progs: mkfs/convert: separate the convert part from make_btrfs
The regulare mkfs_btrfs does not anything special about convert and just passes the arguments. Make that two functions. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/main.c')
-rw-r--r--convert/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert/main.c b/convert/main.c
index 15f14af2..8d9f29fa 100644
--- a/convert/main.c
+++ b/convert/main.c
@@ -2431,7 +2431,7 @@ static int do_convert(const char *devname, int datacsum, int packing,
memset(mkfs_cfg.chunk_uuid, 0, BTRFS_UUID_UNPARSED_SIZE);
memset(mkfs_cfg.fs_uuid, 0, BTRFS_UUID_UNPARSED_SIZE);
- ret = make_btrfs(fd, &mkfs_cfg, &cctx);
+ ret = make_convert_btrfs(fd, &mkfs_cfg, &cctx);
if (ret) {
error("unable to create initial ctree: %s", strerror(-ret));
goto fail;