]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: ext: Use partition size for mount
authorMayuresh Chitale <mchitale@ventanamicro.com>
Tue, 2 May 2023 16:10:20 +0000 (21:40 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 14 Jun 2023 16:56:10 +0000 (12:56 -0400)
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

index f117c630bfe7188bfe40abcdd52a97dfffc2a89d..2bf34344391c1bb85977838aaae057930697e684 100644 (file)
@@ -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);