Merge "Support F2FS compression" am: d541f71204 am: 7f3fbf808d am: 6a4cc31ec7
Change-Id: I80604a477bdb55436af819ce31a8d3fb5daba48f
diff --git a/recovery_utils/roots.cpp b/recovery_utils/roots.cpp
index 58a3139..ae656d0 100644
--- a/recovery_utils/roots.cpp
+++ b/recovery_utils/roots.cpp
@@ -259,6 +259,12 @@
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));