aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
diff options
context:
space:
mode:
authorSkrilax_CZ <skrilax@gmail.com>2013-11-15 09:47:59 +0100
committerdhacker29 <dhackerdvm@gmail.com>2014-02-08 02:35:52 -0600
commita518ef21f03ec0293c7f7db9c600c27f723d397a (patch)
treebe8aa43e8ad00fc434b9b6b617f887d85e13412c /roots.c
parentee9abb62a8ec2078bc767ebdd7e59aee7020b63b (diff)
downloadandroid_bootable_recovery-cm-10.2.tar.gz
android_bootable_recovery-cm-10.2.tar.bz2
android_bootable_recovery-cm-10.2.zip
Fix mkfs.f2fs calling in rootscm-10.2
Change-Id: I4991732be70a7e9ae7e87fa1395e89b315717049
Diffstat (limited to 'roots.c')
-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;