diff options
| author | Sean Anderson <[email protected]> | 2023-09-30 16:42:46 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-10-17 20:50:52 -0400 |
| commit | bfcf7521eb73a0a38412307f6a398a0ae0d1b10d (patch) | |
| tree | 56db9bf81ab47fd3bba8385772758999d4cba10e /include/linux | |
| parent | a0733b3c66fceba34e5fad2c84ccbfa79ede00f3 (diff) | |
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 9905cae65e03335aefcb1ebfab5b7ee62d89f64e.
Signed-off-by: Sean Anderson <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
