path: root/mkfs.c
diff options
authorQu Wenruo <>2016-01-29 13:03:14 +0800
committerDavid Sterba <>2016-06-07 18:15:19 +0200
commit330ca2d6dfe074fd14798ba7a60d6fda43ab932a (patch)
tree4b90f39c8946c56ec449fbb374d8bc686f1bfda4 /mkfs.c
parent522ef705e38fdb9ae952344b454da392e60dc90d (diff)
btrfs-progs: utils: Introduce new function for convert
Introduce new function make_convert_btrfs() for convert. This new function will have the following features: 1) Allocate temporary sb/metadata/system chunk, avoiding old used data 2) More structured functions No more over 1000 lines function, better function split and code reuse This will finally replace current make_btrfs(), but now only used for convert. Signed-off-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'mkfs.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs.c b/mkfs.c
index aff9a68d..4243a4aa 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1675,7 +1675,7 @@ int main(int argc, char **argv)
mkfs_cfg.stripesize = stripesize;
mkfs_cfg.features = features;
- ret = make_btrfs(fd, &mkfs_cfg);
+ ret = make_btrfs(fd, &mkfs_cfg, NULL);
if (ret) {
fprintf(stderr, "error during mkfs: %s\n", strerror(-ret));