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

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

Change-Id: I7ae318f77c5f5dbb295b25f69b0d500f2bdabbc4
This commit is contained in:
Treehugger Robot 2020-10-23 16:49:21 +00:00 committed by Automerger Merge Worker
commit 959048182b

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