Message ID | 20230502161020.1320085-1-mchitale@ventanamicro.com |
---|---|
State | Accepted |
Commit | 7a5f4e4c2f8956b3e4d5b0957990b9ea1818bedb |
Delegated to: | Tom Rini |
Headers | show |
Series | spl: ext: Use partition size for mount | expand |
On Tue, May 02, 2023 at 09:40:20PM +0530, Mayuresh Chitale wrote: > Since commit 9905cae65e03 ("fs: ext4: check the minimal partition size > to mount"), a valid size needs to be provided when mounting > an ext filesystem. Fix the spl ext driver to use the parition size > instead of 0 when mounting the filesystem. > > Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> Applied to u-boot/master, thanks!
diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index f117c630bf..2bf3434439 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -28,7 +28,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image, ext4fs_set_blk_dev(block_dev, &part_info); - err = ext4fs_mount(0); + err = ext4fs_mount(part_info.size); if (!err) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf("%s: ext4fs mount err - %d\n", __func__, err); @@ -82,7 +82,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image, ext4fs_set_blk_dev(block_dev, &part_info); - err = ext4fs_mount(0); + err = ext4fs_mount(part_info.size); if (!err) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf("%s: ext4fs mount err - %d\n", __func__, err);
Since commit 9905cae65e03 ("fs: ext4: check the minimal partition size to mount"), a valid size needs to be provided when mounting an ext filesystem. Fix the spl ext driver to use the parition size instead of 0 when mounting the filesystem. Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com> --- common/spl/spl_ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)