diff options
-rw-r--r-- | roots.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |