Merge "fs_mgr.cpp: fix the problem that the casefold feature not enabled for the data partition"

This commit is contained in:
Treehugger Robot 2020-10-23 16:47:43 +00:00 committed by Gerrit Code Review
commit d0ce499873

View file

@ -527,7 +527,7 @@ static void tune_casefold(const std::string& blk_device, const FstabEntry& entry
bool wants_casefold =
android::base::GetBoolProperty("external_storage.casefold.enabled", false);
if (entry.mount_point != "data" || !wants_casefold || has_casefold ) return;
if (entry.mount_point != "/data" || !wants_casefold || has_casefold) return;
std::string casefold_support;
if (!android::base::ReadFileToString(SYSFS_EXT4_CASEFOLD, &casefold_support)) {