u-boot/fs
Arnaud Ferraris 7683b11098 fs: ext4: skip journal state if fs has metadata_csum
As u-boot doesn't support the metadata_csum feature, writing to a
filesystem with this feature enabled will fail, as expected. However,
during the process, a journal state check is performed, which could
result in:
  - a fs recovery if the fs wasn't umounted properly
  - the fs being marked dirty

Both these cases result in a superblock change, leading to a mismatch
between the superblock checksum and its contents. Therefore, Linux will
consider the filesystem heavily corrupted and will require e2fsck to be
run manually to boot.

By bypassing the journal state check, this patch ensures the superblock
won't be corrupted if the filesystem has metadata_csum feature enabled.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2020-04-27 14:55:29 -04:00
..
btrfs fs: btrfs: support sparse extents 2020-04-20 12:23:29 -04:00
cbfs cbfs: Rename camel-case variables 2019-08-18 21:54:10 +08:00
cramfs SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4 fs: ext4: skip journal state if fs has metadata_csum 2020-04-27 14:55:29 -04:00
fat sandbox conversion to SDL2 2020-02-11 10:58:41 -05:00
jffs2 crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
reiserfs SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ubifs dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
yaffs2 dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
zfs SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fs_internal.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fs.c fs: add fs_get_type() for current filesystem type 2019-10-17 19:19:56 +02:00
Kconfig fs: btrfs: Add U-Boot fs handlers. 2017-10-02 21:52:18 -04:00
Makefile cbfs: Allow CBFS to be used in SPL 2019-08-18 21:54:10 +08:00