fastboot: Support casefolding in ext4 partitions.

Bug: 191929411
Test: manual test
Change-Id: I9bd0a906fa9a2605d56cc3f37247fcc2a3d5f858
This commit is contained in:
David Anderson 2021-07-13 17:31:19 -07:00
parent 53ad66f41b
commit 6f70cc6f92

View file

@ -143,6 +143,13 @@ static int generate_ext4_image(const char* fileName, long long partSize,
mke2fs_args.push_back("512");
}
if (fsOptions & (1 << FS_OPT_CASEFOLD)) {
mke2fs_args.push_back("-O");
mke2fs_args.push_back("casefold");
mke2fs_args.push_back("-E");
mke2fs_args.push_back("encoding=utf8");
}
mke2fs_args.push_back(fileName);
std::string size_str = std::to_string(partSize / block_size);