fs: ext4: check the minimal partition size
No need to try to mount ext4 parttion when a partition is small to handle
a EXT4 file system, when its size is lower than SUPERBLOCK_SIZE.

This patch avoids traces when EFI try to detect FS type on one LBA (512)

  fs_devread read outside partition 2
  Failed to mount ext2 filesystem..

Change-Id: I852b2b0fb85539e986a45dcfaf765f92e0924536
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/291860
Reviewed-by: Patrice CHOTARD <patrice.chotard@foss.st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
Domain-Review: Patrice CHOTARD <patrice.chotard@foss.st.com>
1 parent 5c1a184 commit 4ede2790cf8a8d5500f7e3fdeccce02bbb118f0d
@Patrick Delaunay Patrick Delaunay authored on 21 Feb 2023
Patrice Chotard committed on 29 May 2023
Showing 1 changed file