Re: ext4 online resize -> EXT4-fs error (device loop0) in ext4_update_backup_sb:174: Filesystem failed CRC

From: Jakob Unterwurzacher
Date: Fri Oct 28 2022 - 07:50:00 EST


On 28.10.22 05:59, Theodore Ts'o wrote:

Thanks for the reproducer! The following patch should fix things.

- Ted

From 9a8c5b0d061554fedd7dbe894e63aa34d0bac7c4 Mon Sep 17 00:00:00 2001
From: Theodore Ts'o <tytso@xxxxxxx>
Date: Thu, 27 Oct 2022 16:04:36 -0400
Subject: [PATCH] ext4: update the backup superblock's at the end of the online
resize

Hi Theodore,

I tested the patch on arm64 and it fixes the issue. Now the kernel messages are just this:

[ 14.769997] EXT4-fs (mmcblk2p1): resizing filesystem from 139771 to 3888507 blocks
[ 15.020593] EXT4-fs (mmcblk2p1): resized filesystem to 3888507
fsck after the resize is happy too.

Thank you!
Jakob