recovery: format f2fs with encrypt/quota

Change-Id: Ia393b7b78b45f09964449ec0e255aa26bb3b8ddf
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
Jaegeuk Kim
2017-11-13 14:05:00 -08:00
parent de07371b03
commit 1a8bb0f542
2 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -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));
}