Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 270720d3 authored by Keith Mok's avatar Keith Mok Committed by Michael Bestas
Browse files

fs_mgr: Change f2fs path

Fix if data partition is wiped, it won't format itself during bootup.
Since f2fs path has been changed to /system/bin in M instead of /sbin

Change-Id: Ic111487d2c5d91da385f2292205abd011128d17d
parent cfe250f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static int format_f2fs(char *fs_blkdev, long long fs_length)
    int rc = 0;
    char buff[65];

    args[0] = (char *)"/sbin/mkfs.f2fs";
    args[0] = (char *)"/system/bin/mkfs.f2fs";

    if (fs_length >= 0) {
        snprintf(buff, sizeof(buff), "%lld", fs_length / 512);
@@ -95,7 +95,7 @@ static int format_f2fs(char *fs_blkdev, long long fs_length)
    }
    if (!pid) {
        /* This doesn't return */
        execv("/sbin/mkfs.f2fs", args);
        execv("/system/bin/mkfs.f2fs", args);
        exit(1);
    }
    for(;;) {