rv1126-uboot/fs
Tuomas Tynkkynen e47a88c41f 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)
2018-01-17 15:27:28 +08:00
..
cbfs fs: Kconfig: Add a separate config for FS_CBFS 2017-04-30 13:40:57 -04:00
cramfs fs: Kconfig: Add a separate option for FS_CRAMFS 2017-04-30 13:40:59 -04:00
ext4 UPSTREAM: fs/ext4: Fix group descriptor checksum calculation 2018-01-17 15:27:28 +08:00
fat UPSTREAM: fs/fat: Reduce stack usage 2018-01-16 18:16:48 +08:00
jffs2 treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
reiserfs UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
sandbox sandboxfs: Fix resource leak 2016-12-02 10:37:47 -07:00
ubifs env: Rename common functions related to setenv() 2017-08-16 08:23:32 -04:00
yaffs2 treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
zfs UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
Kconfig Convert CONFIG_CMD_YAFFS2 to Kconfig 2017-08-11 17:44:50 -04:00
Makefile UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00
fs.c UPSTREAM: fat/fs: move ls to generic implementation 2018-01-16 18:16:48 +08:00
fs_internal.c UPSTREAM: fs: Create a common fs_devread for ext4/reiserfs/zfs 2018-01-17 15:27:28 +08:00