Skip to content

Commit d195da8

Browse files
committed
image:ext4 set commit interval
Set commit interval of ext4 filesystems to 30s rather than the default of 5s. Performance and device longevity will benefit. Refs: https://www.kernel.org/doc/Documentation/filesystems/ext4.txt
1 parent 085c5db commit d195da8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

image/gpt/ab_userdata/slot-post-process.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ echo "pre-process $IMAGEMOUNTPATH for $COMP" 1>&2
99
case $COMP in
1010
SYSTEM)
1111
cat << EOF > $IMAGEMOUNTPATH/etc/fstab
12-
/dev/disk/by-slot/active/system / ext4 rw,relatime,errors=remount-ro 0 1
12+
/dev/disk/by-slot/active/system / ext4 rw,relatime,errors=remount-ro,commit=30 0 1
1313
/dev/disk/by-slot/active/boot /boot/firmware vfat defaults,rw,nofail 0 2
14-
LABEL=USERDATA /data ext4 rw,relatime,nofail 0 2
14+
LABEL=USERDATA /data ext4 rw,relatime,nofail,commit=30 0 2
1515
LABEL=BOOTFS /bootfs vfat defaults,rw 0 2
1616
EOF
1717
;;

image/mbr/simple_dual/setup-clear.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ case $LABEL in
1111
case $IGconf_image_rootfs_type in
1212
ext4)
1313
cat << EOF > $IMAGEMOUNTPATH/etc/fstab
14-
UUID=${ROOTUUID} / ext4 rw,relatime,errors=remount-ro 0 1
14+
UUID=${ROOTUUID} / ext4 rw,relatime,errors=remount-ro,commit=30 0 1
1515
EOF
1616
;;
1717
btrfs)

image/mbr/simple_dual/setup-crypt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ case $LABEL in
1010
case $IGconf_image_rootfs_type in
1111
ext4)
1212
cat << EOF > $IMAGEMOUNTPATH/etc/fstab
13-
/dev/mapper/cryptroot / ext4 rw,relatime,errors=remount-ro 0 1
13+
/dev/mapper/cryptroot / ext4 rw,relatime,errors=remount-ro,commit=30 0 1
1414
EOF
1515
;;
1616
btrfs)

0 commit comments

Comments
 (0)