u-boot-brain/fs
Wagner Popov dos Santos fc25ffe7d2 JFFS2: fix jffs2 summary datacrc status uninitialized
The function jffs2_1pass_read_inode() was discarding the summary
inodes and dirent because the value in datacrc flag wasn't
initialized in function jffs2_sum_process_sum_data().

This fix initializes the status of all summary records to indicate
that the CRC needs to be verified when they are loaded.

Before this fix, the behaviors produced by the undefined value of
datacrc was:
- Summary's registries were discarded when 'b->datacrc' is equal
  as 'CRC_BAD'.
- Summary's registries were not checked when b->datacrc differs of
  'CRC_BAD' and 'CRC_UNKNOWN'

So, almost all of the time the crc just isn't checked, and in some
cases the registries are discarded.

Signed-off-by: Wagner Popov dos Santos <wpopov@gmail.com>
2021-04-07 10:22:22 -04:00
..
btrfs fs: btrfs: do not fail when offset of a ROOT_ITEM is not -1 2021-03-01 09:53:46 -05:00
cbfs cbfs: Drop unnecessary cast in file_cbfs_fill_cache() 2021-03-27 13:59:37 +13:00
cramfs common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
ext4 common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fat fs: fat: remove trailing periods from long name 2021-02-03 11:41:02 +01:00
jffs2 JFFS2: fix jffs2 summary datacrc status uninitialized 2021-04-07 10:22:22 -04:00
reiserfs common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sandbox common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
squashfs fs/squashfs: Fix compilation error 2021-03-04 14:40:52 -05:00
ubifs common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
yaffs2 common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
zfs common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Kconfig fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00
Makefile fs/squashfs: new filesystem 2020-08-07 22:31:32 -04:00
fs.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fs_internal.c fs: convert error and debug messages to log 2020-09-06 21:21:41 +02:00