Skip to contentSkip to conversation

spl: ext: Use partition size for mount

PATCH In review Mayuresh Chitale 2 participants 2 messages May 2, 2023 – Jun 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: ext: Use partition size for mount

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.

---
 common/spl/spl_ext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
common/spl/spl_ext.c +2 -2
index f117c630bf..2bf3434439 100644
@@ -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);
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Mayuresh Chitale

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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom