u-boot/fs/ext4
Sean Anderson bfcf7521eb Revert "fs: ext4: check the minimal partition size to mount"
This check breaks small partitions (under 1024 blocks) because part_length
is in units of part.blksz and not bytes. Given the purpose of this
function, we really want to make sure the partition is SUPERBLOCK_START +
SUPERBLOCK_SIZE (2048) bytes so we can call ext4_read_superblock without
error.

The obvious solution is to convert callers from things like

	ext4fs_mount(part_info.size)

to

	ext4fs_mount(part_info.size * part_info.blksz);

However, I'm not really a fan of the bloat that would cause, especially
since the error is now suppressed. I think the best course of action here
is to just revert the patch.

This reverts commit 9905cae65e.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2023-10-17 20:50:52 -04:00
..
dev.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ext4_common.c Revert "fs: ext4: check the minimal partition size to mount" 2023-10-17 20:50:52 -04:00
ext4_common.h fs: ext4: Use CRC-16 implementation from linux/crc16.h 2022-04-21 14:32:40 -04:00
ext4_journal.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
ext4_journal.h ext4: add support for filesystems without JOURNAL 2019-07-18 11:31:24 -04:00
ext4_write.c fs: ext4: fix files seen as symlink during deletion 2023-03-30 15:09:59 -04:00
ext4fs.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
Kconfig
Makefile fs: ext4: Use CRC-16 implementation from linux/crc16.h 2022-04-21 14:32:40 -04:00