summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-21 07:05:03 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-21 07:05:03 +0100
commitc6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132 (patch)
treea738fc80bba96118b966508480feb1e758af7011
parentMerge "updater_sample: add internet access permission" am: c760702633 am: a599c6ca45 am: 70cf3d4556 (diff)
parentMerge "recovery: add a way to enable metadata_csum for ext4" am: 5ac6163822 am: 9af39bf5c4 (diff)
downloadandroid_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar.gz
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar.bz2
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar.lz
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar.xz
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.tar.zst
android_bootable_recovery-c6f36bfd3024e57342e0cde5c0a5a3ebfcdc8132.zip
-rw-r--r--recovery_utils/roots.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/recovery_utils/roots.cpp b/recovery_utils/roots.cpp
index 127039872..58a313973 100644
--- a/recovery_utils/roots.cpp
+++ b/recovery_utils/roots.cpp
@@ -202,6 +202,15 @@ int format_volume(const std::string& volume, const std::string& directory) {
mke2fs_args.push_back("512");
}
+ if (v->fs_mgr_flags.ext_meta_csum) {
+ mke2fs_args.push_back("-O");
+ mke2fs_args.push_back("metadata_csum");
+ mke2fs_args.push_back("-O");
+ mke2fs_args.push_back("64bit");
+ mke2fs_args.push_back("-O");
+ mke2fs_args.push_back("extent");
+ }
+
int raid_stride = v->logical_blk_size / kBlockSize;
int raid_stripe_width = v->erase_blk_size / kBlockSize;
// stride should be the max of 8KB and logical block size