diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2020-04-14 17:58:31 +0200 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-04-14 17:58:31 +0200 |
commit | 7f3fbf808dc8325318b7241171bb93bdfa29c3bc (patch) | |
tree | 4eb725518ebe70d8e57a0de6ca8202210779dc45 | |
parent | DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp into stag-aosp-master (diff) | |
parent | Merge "Support F2FS compression" (diff) | |
download | android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar.gz android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar.bz2 android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar.lz android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar.xz android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.tar.zst android_bootable_recovery-7f3fbf808dc8325318b7241171bb93bdfa29c3bc.zip |
Diffstat (limited to '')
-rw-r--r-- | recovery_utils/roots.cpp | 6 |
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)); |