From: Tom Rini Date: Sat, 7 Oct 2017 09:08:29 -0400 Subject: [U-Boot] [U-Boot, v2, 1/4] fs/ext4: Fix group descriptor checksum calculation In-Reply-To: <20170925190634.21738-1-tuomas.tynkkynen@iki.fi> References: <20170925190634.21738-1-tuomas.tynkkynen@iki.fi> Message-ID: <20171007130829.GY25966@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 Mon, Sep 25, 2017 at 10:06:31PM +0300, Tuomas Tynkkynen wrote: > The current code doesn't compute the group descriptor checksum correctly > for the filesystems that e2fsprogs 1.43.4 creates (they have > 'Group descriptor size: 64' as reported by tune2fs). Extend the checksum > calculation to be done as ext4_group_desc_csum() does in Linux. > > This fixes these errors in dmesg from running fs-test.sh and makes it > succeed again: > > [1671902.620699] EXT4-fs (loop1): ext4_check_descriptors: Checksum for group 0 failed (35782!=10965) > [1671902.620706] EXT4-fs (loop1): group descriptors corrupted! > > Signed-off-by: Tuomas Tynkkynen Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: