summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-09-04 19:40:53 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-09-04 19:40:53 +0200
commit884b1a5b0c2d34b075d8cd594e9d734722d60bbb (patch)
treef8bc98553785b0d1ab524b0aa0d62cc4e6a32662 /roots.cpp
parentMerge "applypatch: {Load,Save}FileContents return bool values." am: bae5f1a846 am: baa841ed04 (diff)
parentMerge "support mounting f2fs in recovery mode" am: a062fae9d7 (diff)
downloadandroid_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar.gz
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar.bz2
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar.lz
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar.xz
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.tar.zst
android_bootable_recovery-884b1a5b0c2d34b075d8cd594e9d734722d60bbb.zip
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp2
1 files changed, 1 insertions, 1 deletions
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";