[U-Boot] [U-Boot, v2, 1/4] fs/ext4: Fix group descriptor checksum calculation

Tom Rini trini at konsulko.com
Sat Oct 7 13:08:29 UTC 2017


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 <tuomas.tynkkynen at iki.fi>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20171007/52c91038/attachment.sig>


More information about the U-Boot mailing list