summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Huang <huangrandall@google.com>2020-11-14 23:38:10 +0800
committerRandall Huang <huangrandall@google.com>2020-11-14 23:49:13 +0800
commit23a98ae1bfaab0b8dc5569eb166f855c2140f2ec (patch)
treed303b49a45d800e8247f87e4b80e522e7b86c001
parent8015abaa1c9bf9de5ac565d2d2cfccec2d793c4f (diff)
downloadbonito-23a98ae1bfaab0b8dc5569eb166f855c2140f2ec.tar.gz
fstab: data=journal,commit=1 for /metadata
Since Ext4 doesn't implement "-o sync", it commits metadata at every 5 secs. This may cause /metadata corruption. Bug: 162883014 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Signed-off-by: Randall Huang <huangrandall@google.com> Change-Id: Icd38754bad1b1529d01165ea8c703c214d20bb4b
-rw-r--r--fstab.hardware2
1 files changed, 1 insertions, 1 deletions
diff --git a/fstab.hardware b/fstab.hardware
index 3d41165d..c8673433 100644
--- a/fstab.hardware
+++ b/fstab.hardware
@@ -10,7 +10,7 @@ system /system
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
product /product ext4 ro,barrier=1 wait,slotselect,avb,logical,first_stage_mount
-/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,sync wait,formattable,first_stage_mount
+/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,data=journal,commit=1 wait,formattable,first_stage_mount
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,fileencryption=ice,keydirectory=/metadata/vold/metadata_encryption,quota,formattable,sysfs_path=/sys/devices/platform/soc/7c4000.sdhci,reservedsize=128M,checkpoint=fs
/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:vendor_firmware_file:s0 wait,slotselect
# Need to have this entry in here even though the mount point itself is no longer needed.