Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c007c433 authored by Yongqin Liu's avatar Yongqin Liu
Browse files

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: 5ba5b90c ("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: default avatarYongqin Liu <yongqin.liu@linaro.org>
Change-Id: I226a2275f5f2ee18503c5a3863ef5a1d2c2ed7be
parent 7d55df28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {