aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roots.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/roots.c b/roots.c
index 673d8480..97c3fada 100644
--- a/roots.c
+++ b/roots.c
@@ -410,9 +410,10 @@ int format_volume(const char* volume) {
#ifdef USE_F2FS
if (strcmp(v->fs_type, "f2fs") == 0) {
- int result = make_f2fs_main(v->blk_device, v->mount_point);
+ const char* args[] = { "mkfs.f2fs", v->blk_device };
+ int result = make_f2fs_main(2, (char**)args);
if (result != 0) {
- LOGE("format_volume: mkfs.f2f2 failed on %s\n", v->blk_device);
+ LOGE("format_volume: mkfs.f2fs failed on %s\n", v->blk_device);
return -1;
}
return 0;