Searched hist:e47a88c41f05f5dc1c941163fdd36a9eefaa7ed3 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/fs/ext4/ |
| H A D | ext4_common.c | e47a88c41f05f5dc1c941163fdd36a9eefaa7ed3 Mon Sep 25 19:06:31 UTC 2017 Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> UPSTREAM: 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!
Change-Id: I362747a60cc16886c1a215867471b0a83fcf5e47 Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 385b73185596cfc9e2acb74ab66abe91c06177f3)
|