fastboot: Support casefolding in ext4 partitions.
Bug: 191929411 Test: manual test Change-Id: I9bd0a906fa9a2605d56cc3f37247fcc2a3d5f858
This commit is contained in:
parent
53ad66f41b
commit
6f70cc6f92
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue