summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fb_fsl/fb_fsl_partitions.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fastboot/fb_fsl/fb_fsl_partitions.c')
-rw-r--r--drivers/fastboot/fb_fsl/fb_fsl_partitions.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/fastboot/fb_fsl/fb_fsl_partitions.c b/drivers/fastboot/fb_fsl/fb_fsl_partitions.c
index 237ae875ab..a43c70db93 100644
--- a/drivers/fastboot/fb_fsl/fb_fsl_partitions.c
+++ b/drivers/fastboot/fb_fsl/fb_fsl_partitions.c
@@ -118,16 +118,16 @@ static int _fastboot_parts_add_ptable_entry(int ptable_index,
!strcmp((const char *)info.name, FASTBOOT_PARTITION_OEM_A) ||
!strcmp((const char *)info.name, FASTBOOT_PARTITION_VENDOR_A) ||
!strcmp((const char *)info.name, FASTBOOT_PARTITION_OEM_B) ||
- !strcmp((const char *)info.name, FASTBOOT_PARTITION_VENDOR_B) ||
- !strcmp((const char *)info.name, FASTBOOT_PARTITION_DATA) ||
+ !strcmp((const char *)info.name, FASTBOOT_PARTITION_VENDOR_B))
#else
if (!strcmp((const char *)info.name, FASTBOOT_PARTITION_SYSTEM) ||
- !strcmp((const char *)info.name, FASTBOOT_PARTITION_DATA) ||
!strcmp((const char *)info.name, FASTBOOT_PARTITION_DEVICE) ||
- !strcmp((const char *)info.name, FASTBOOT_PARTITION_CACHE) ||
+ !strcmp((const char *)info.name, FASTBOOT_PARTITION_CACHE))
#endif
- !strcmp((const char *)info.name, FASTBOOT_PARTITION_METADATA))
- strcpy(ptable[ptable_index].fstype, "ext4");
+ strcpy(ptable[ptable_index].fstype, "erofs");
+ else if (!strcmp((const char *)info.name, FASTBOOT_PARTITION_DATA) ||
+ !strcmp((const char *)info.name, FASTBOOT_PARTITION_METADATA))
+ strcpy(ptable[ptable_index].fstype, "f2fs");
else
strcpy(ptable[ptable_index].fstype, "raw");
return 0;