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

Commit e34ce8bb authored by Ethan Chen's avatar Ethan Chen
Browse files

Revert "fs_mgr: skip an fstab entry if we detect a different filesystem type"

This reverts commit d1bec30d.

Change-Id: Iadcdf9d96dfd455bae61241bf8d6e14086ce32e7
parent 58e1572f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@ LOCAL_SRC_FILES:= fs_mgr.c fs_mgr_verity.c fs_mgr_fstab.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include

LOCAL_MODULE:= libfs_mgr
LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static libext2_blkid libext2_uuid
LOCAL_C_INCLUDES += system/extras/ext4_utils external/e2fsprogs/lib
LOCAL_STATIC_LIBRARIES := liblogwrap libmincrypt libext4_utils_static
LOCAL_C_INCLUDES += system/extras/ext4_utils
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_CFLAGS := -Werror

@@ -30,7 +30,7 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)

LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static libext2_blkid libext2_uuid
LOCAL_STATIC_LIBRARIES := libfs_mgr liblogwrap libcutils liblog libc libmincrypt libext4_utils_static

LOCAL_CFLAGS := -Werror

+0 −9
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@
#include <cutils/partition_utils.h>
#include <cutils/properties.h>
#include <logwrap/logwrap.h>
#include <blkid/blkid.h>

#include "mincrypt/rsa.h"
#include "mincrypt/sha.h"
@@ -329,7 +328,6 @@ int fs_mgr_mount_all(struct fstab *fstab)
    int mret = -1;
    int mount_errno = 0;
    int attempted_idx = -1;
    char *detected_fs_type;

    if (!fstab) {
        return -1;
@@ -360,13 +358,6 @@ int fs_mgr_mount_all(struct fstab *fstab)
                continue;
            }
        }

        /* 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 && 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);
        i = last_idx_inspected;
+0 −1
Original line number Diff line number Diff line
@@ -72,7 +72,6 @@ int fs_mgr_add_entry(struct fstab *fstab,
                     const char *mount_point, const char *fs_type,
                     const char *blk_device);
struct fstab_rec *fs_mgr_get_entry_for_mount_point(struct fstab *fstab, const char *path);
struct fstab_rec *fs_mgr_get_entry_for_mount_point_after(struct fstab_rec *start_rec, struct fstab *fstab, const char *path);
int fs_mgr_is_voldmanaged(struct fstab_rec *fstab);
int fs_mgr_is_nonremovable(struct fstab_rec *fstab);
int fs_mgr_is_encryptable(struct fstab_rec *fstab);
+1 −3
Original line number Diff line number Diff line
@@ -60,9 +60,7 @@ LOCAL_STATIC_LIBRARIES := \
	libc \
	libselinux \
	libmincrypt \
	libext4_utils_static \
	libext2_blkid \
	libext2_uuid
	libext4_utils_static

LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
ifneq ($(strip $(TARGET_PLATFORM_DEVICE_BASE)),)