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

Commit 58e1572f authored by Ethan Chen's avatar Ethan Chen
Browse files

Revert "fs_mgr: Allow ext2/3/4 to mount as ext4"

This reverts commit 13d53a47.

Change-Id: I66d0c957d52fc7f2324d1641d8af9880b8b2f7d5
parent 66af09cc
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -363,16 +363,9 @@ int fs_mgr_mount_all(struct fstab *fstab)

        /* Skip fstab entries for partitions that we KNOW are wrong */
        detected_fs_type = blkid_get_tag_value(NULL, "TYPE", fstab->recs[i].blk_device);
        if (detected_fs_type) {
            int cmp_len = strlen(detected_fs_type);
            /* ext formats are mutually compatible by design */
            if (!strncmp(detected_fs_type,"ext", 3) && cmp_len == 4) {
                cmp_len = 3;
            }
            if (strncmp(fstab->recs[i].fs_type, detected_fs_type, cmp_len)) {
        if (detected_fs_type && strcmp(fstab->recs[i].fs_type, detected_fs_type) != 0) {
            continue;
        }
        }

        int last_idx_inspected;
        mret = mount_with_alternatives(fstab, i, &last_idx_inspected, &attempted_idx);