From: Tom Rini Date: Tue, 28 Apr 2020 09:54:04 -0400 Subject: [PATCH] fs: ext4: skip journal state if fs has metadata_csum In-Reply-To: <20200422104344.87714-1-arnaud.ferraris@collabora.com> References: <20200422104344.87714-1-arnaud.ferraris@collabora.com> Message-ID: <20200428135404.GM4468@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Apr 22, 2020 at 12:43:44PM +0200, Arnaud Ferraris wrote: > As u-boot doesn't support the metadata_csum feature, writing to a > filesystem with this feature enabled will fail, as expected. However, > during the process, a journal state check is performed, which could > result in: > - a fs recovery if the fs wasn't umounted properly > - the fs being marked dirty > > Both these cases result in a superblock change, leading to a mismatch > between the superblock checksum and its contents. Therefore, Linux will > consider the filesystem heavily corrupted and will require e2fsck to be > run manually to boot. > > By bypassing the journal state check, this patch ensures the superblock > won't be corrupted if the filesystem has metadata_csum feature enabled. > > Signed-off-by: Arnaud Ferraris Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: