From 502fd1c5e82a21ecb4eace746c320dc42a77144b Mon Sep 17 00:00:00 2001 From: Jin Qian Date: Thu, 2 Nov 2017 11:58:12 -0700 Subject: recovery: remove make_ext4fs from updater Bug: 64395169 Change-Id: I6f6a4f82b225435c6ad5c828e110fa135e6f7579 --- updater/install.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index 9425d1872..b865081b4 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include @@ -284,14 +283,8 @@ Value* FormatFn(const char* name, State* state, const std::vector(mke2fs_argv)); if (status != 0) { - LOG(WARNING) << name << ": mke2fs failed (" << status << ") on " << location - << ", falling back to make_ext4fs"; - status = make_ext4fs(location.c_str(), size, mount_point.c_str(), sehandle); - if (status != 0) { - LOG(ERROR) << name << ": make_ext4fs failed (" << status << ") on " << location; - return StringValue(""); - } - return StringValue(location); + LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; + return StringValue(""); } const char* e2fsdroid_argv[] = { "/sbin/e2fsdroid_static", "-e", "-a", mount_point.c_str(), -- cgit v1.2.3