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

Commit 15e957d3 authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "support mounting f2fs in recovery mode"

am: a062fae9

Change-Id: I5f9798c1d901e98240831297aadadf39158cf2fc
parents baa841ed a062fae9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ int ensure_path_mounted_at(const char* path, const char* mount_point) {
  mkdir(mount_point, 0755);  // in case it doesn't already exist

  if (strcmp(v->fs_type, "ext4") == 0 || strcmp(v->fs_type, "squashfs") == 0 ||
      strcmp(v->fs_type, "vfat") == 0) {
      strcmp(v->fs_type, "vfat") == 0 || strcmp(v->fs_type, "f2fs") == 0) {
    int result = mount(v->blk_device, mount_point, v->fs_type, v->flags, v->fs_options);
    if (result == -1 && fs_mgr_is_formattable(v)) {
      PLOG(ERROR) << "Failed to mount " << mount_point << "; formatting";