summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2017-12-08 02:07:11 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-12-08 02:07:11 +0100
commit3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e (patch)
tree9404dbb9e072724ff2cfa0aa0cf6913da796790b /updater
parentMerge "Add a /bin symlink for consistency." (diff)
parentMerge "add sload.f2fs for recovery format" (diff)
downloadandroid_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar.gz
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar.bz2
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar.lz
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar.xz
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.tar.zst
android_bootable_recovery-3d4359d3ae9f25e7b6f366e6308c5c2a5cf15d3e.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 870b85791..b83d30ff3 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -318,6 +318,15 @@ Value* FormatFn(const char* name, State* state, const std::vector<std::unique_pt
LOG(ERROR) << name << ": mkfs.f2fs failed (" << status << ") on " << location;
return StringValue("");
}
+
+ const char* sload_argv[] = { "/sbin/sload.f2fs", "-t", mount_point.c_str(), location.c_str(),
+ nullptr };
+ status = exec_cmd(sload_argv[0], const_cast<char**>(sload_argv));
+ if (status != 0) {
+ LOG(ERROR) << name << ": sload.f2fs failed (" << status << ") on " << location;
+ return StringValue("");
+ }
+
return StringValue(location);
} else {
LOG(ERROR) << name << ": unsupported fs_type \"" << fs_type << "\" partition_type \""