fs_mgr.cpp: fix the problem that the casefold feature not enabled for the data partition
The value of entry.mount_point for data partition is "/data"
Fixes: 5ba5b90cd6
("fs_mgr: try tune2fs for casefolding on /data only")
Test: got "Can't mount with encoding and encryption" problem reported
by the db845c build with the default 5.4.38 prebuilt kernel
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I226a2275f5f2ee18503c5a3863ef5a1d2c2ed7be
This commit is contained in:
parent
7d55df2895
commit
c007c43335
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue