summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2020-04-14 19:45:03 +0200
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-14 19:45:03 +0200
commitae2450e340685fac4612249658e8438c6f20535d (patch)
tree780dd7f570416ac936a169a36aa0cdb92fed16f0
parent[automerger skipped] Import translations. DO NOT MERGE am: 500ed46d9e -s ours am: 62f41b5368 -s ours am: 3143f8e580 -s ours am: 436c455a37 -s ours am: d5f00589d5 -s ours (diff)
parentMerge "Support F2FS compression" am: d541f71204 am: 7f3fbf808d am: 6a4cc31ec7 am: 08241cca54 am: 6909061231 (diff)
downloadandroid_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar.gz
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar.bz2
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar.lz
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar.xz
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.tar.zst
android_bootable_recovery-ae2450e340685fac4612249658e8438c6f20535d.zip
-rw-r--r--recovery_utils/roots.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/recovery_utils/roots.cpp b/recovery_utils/roots.cpp
index 58a313973..ae656d0ad 100644
--- a/recovery_utils/roots.cpp
+++ b/recovery_utils/roots.cpp
@@ -259,6 +259,12 @@ int format_volume(const std::string& volume, const std::string& directory) {
make_f2fs_cmd.push_back("-C");
make_f2fs_cmd.push_back("utf8");
}
+ if (v->fs_mgr_flags.fs_compress) {
+ make_f2fs_cmd.push_back("-O");
+ make_f2fs_cmd.push_back("compression");
+ make_f2fs_cmd.push_back("-O");
+ make_f2fs_cmd.push_back("extra_attr");
+ }
make_f2fs_cmd.push_back(v->blk_device);
if (length >= kSectorSize) {
make_f2fs_cmd.push_back(std::to_string(length / kSectorSize));