summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-11-14 02:49:26 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-14 02:49:26 +0100
commitd4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f (patch)
treefc072fe34d311e05b1d04671b6fa902797397762 /roots.cpp
parentMerge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch." (diff)
parentrecovery: format f2fs with encrypt/quota (diff)
downloadandroid_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar.gz
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar.bz2
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar.lz
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar.xz
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.tar.zst
android_bootable_recovery-d4b6e25fdda0bd19d65ba3babbaac73a10cfeb8f.zip
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index c0348d715..3cc7b4188 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -321,7 +321,9 @@ int format_volume(const char* volume, const char* directory) {
}
// Has to be f2fs because we checked earlier.
- std::vector<std::string> f2fs_args = { "/sbin/mkfs.f2fs", "-t", "-d1", v->blk_device };
+ std::vector<std::string> f2fs_args = { "/sbin/mkfs.f2fs", "-d1", "-f",
+ "-O", "encrypt", "-O", "quota",
+ v->blk_device };
if (length >= 512) {
f2fs_args.push_back(std::to_string(length / 512));
}