u-boot/fs/ext4
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
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ext4_common.c ext4: gracefully fail on divide-by-0 2019-07-18 11:31:29 -04:00
ext4_common.h fs: ext4: constify the buffer passed to write functions 2019-04-09 15:34:15 -04:00
ext4_journal.c fs: ext4: skip journal state if fs has metadata_csum 2020-04-27 14:55:29 -04:00
ext4_journal.h ext4: add support for filesystems without JOURNAL 2019-07-18 11:31:24 -04:00
ext4_write.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ext4fs.c fs: ext4: Fix alignment of cache buffers 2020-03-27 15:42:04 -04:00
Kconfig fs: Migrate ext4 to Kconfig 2018-01-22 16:43:30 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00