Skip to content

Commit

Permalink
fstab: data=journal,commit=1 for /metadata
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Randall Huang <[email protected]>
Change-Id: Icd38754bad1b1529d01165ea8c703c214d20bb4b
  • Loading branch information
Randall Huang committed Nov 14, 2020
1 parent 604c395 commit b973e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fstab.hardware
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ system /system e
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta,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,check,metadata_csum
/dev/block/by-name/metadata /metadata ext4 noatime,nosuid,nodev,discard,data=journal,commit=1 wait,formattable,first_stage_mount,check,metadata_csum
/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=0,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait,slotselect
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=nobarrier latemount,wait,check,quota,formattable,fileencryption=ice,reservedsize=128M,sysfs_path=/dev/sys/block/bootdevice,keydirectory=/metadata/vold/metadata_encryption,checkpoint=fs
Expand Down

0 comments on commit b973e54

Please sign in to comment.