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

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1471662

Change-Id: Iaabb014740a77a72a27090c82aceb90cdeadc2be
This commit is contained in:
Treehugger Robot 2020-10-23 16:56:28 +00:00 committed by Automerger Merge Worker
commit 7a956ed1df

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)) {