diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2017-09-25 22:06:31 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-06 18:28:18 +0300 |
commit | 385b73185596cfc9e2acb74ab66abe91c06177f3 (patch) | |
tree | 116142f27d11cf0472d47c9db69443b567ee38ad /post | |
parent | bd2259e3c40c097c47e1dfc58a03b1df66b44840 (diff) | |
download | u-boot-385b73185596cfc9e2acb74ab66abe91c06177f3.tar.xz |
fs/ext4: Fix group descriptor checksum calculation
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@iki.fi>
Diffstat (limited to 'post')
0 files changed, 0 insertions, 0 deletions