From 603c11b1dcfdcc50193d24a2be8c57579c5b6303 Mon Sep 17 00:00:00 2001 From: Randall Huang Date: Wed, 5 Jul 2023 10:45:32 +0800 Subject: [PATCH] fstab: add the noatime for read-only ext4 partitions This is to avoid unnecessary ext4 behavior Bug: 289631992 Test: boot to home Change-Id: I06e2a4042f483075acf030f7c3a257c27d0f8b29 Signed-off-by: Randall Huang --- conf/fstab.modem | 2 +- conf/fstab.zumapro.in | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/fstab.modem b/conf/fstab.modem index a5e5fd4..ffa271e 100644 --- a/conf/fstab.modem +++ b/conf/fstab.modem @@ -1,4 +1,4 @@ # Android fstab file. # # Create the specific fstab file for modem partition as flexibility -/dev/block/platform/13200000.ufs/by-name/modem /mnt/vendor/modem_img ext4 ro,defaults,context=u:object_r:modem_img_file:s0,barrier=1 wait,slotselect +/dev/block/platform/13200000.ufs/by-name/modem /mnt/vendor/modem_img ext4 noatime,ro,context=u:object_r:modem_img_file:s0 wait,slotselect diff --git a/conf/fstab.zumapro.in b/conf/fstab.zumapro.in index e749162..d079c8e 100644 --- a/conf/fstab.zumapro.in +++ b/conf/fstab.zumapro.in @@ -4,14 +4,14 @@ # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK # # -system /system ext4 ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +system /system ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 # During compliance testing, the previous line would fail (because GSI is ext4), and the next line would be used to mount GSI. -system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 -system_dlkm /system_dlkm ext4 ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 -system_ext /system_ext ext4 ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 -product /product ext4 ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 -vendor /vendor ext4 ro wait,slotselect,avb=vbmeta_vendor,logical,first_stage_mount,readahead_size_kb=128 -vendor_dlkm /vendor_dlkm ext4 ro wait,slotselect,avb=vbmeta,logical,first_stage_mount +system /system ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +system_dlkm /system_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +system_ext /system_ext ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +product /product ext4 noatime,ro wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,readahead_size_kb=128 +vendor /vendor ext4 noatime,ro wait,slotselect,avb=vbmeta_vendor,logical,first_stage_mount,readahead_size_kb=128 +vendor_dlkm /vendor_dlkm ext4 noatime,ro wait,slotselect,avb=vbmeta,logical,first_stage_mount /dev/block/platform/13200000.ufs/by-name/boot /boot emmc defaults slotselect,avb=boot,first_stage_mount /dev/block/platform/13200000.ufs/by-name/init_boot /init_boot emmc defaults slotselect,avb=init_boot,first_stage_mount /dev/block/platform/13200000.ufs/by-name/efs /mnt/vendor/efs f2fs noatime,sync wait,check,formattable