From 5d7be6b4a5efbd5e55f30a2d91fa7137725416ba Mon Sep 17 00:00:00 2001 From: Lianjun Huang Date: Mon, 3 Sep 2018 18:07:35 +0800 Subject: support mounting f2fs in recovery mode Change-Id: Ic03b3e95c4b5cd49b92cb3ec697e327a59421549 Signed-off-by: Lianjun Huang --- roots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roots.cpp b/roots.cpp index 06a77c186..c29771af6 100644 --- a/roots.cpp +++ b/roots.cpp @@ -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"; -- cgit v1.2.3