diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2016-12-27 02:35:08 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-27 11:24:18 -0500 |
commit | 3cc5bbb8e68dc67b7c3d2fdebef69408e5271469 (patch) | |
tree | 2ad1a2413d08dfd0123232d9c5286a25c001834e | |
parent | 139f7b1ded58366e8d328c1dd49bcbe1fc08b24c (diff) | |
download | u-boot-3cc5bbb8e68dc67b7c3d2fdebef69408e5271469.zip u-boot-3cc5bbb8e68dc67b7c3d2fdebef69408e5271469.tar.gz u-boot-3cc5bbb8e68dc67b7c3d2fdebef69408e5271469.tar.bz2 |
fs/ext4: Initialize group descriptor size for revision level 0 filesystems
genext2fs creates revision level 0 filesystems, which are not readable
by u-boot due to the initialized group descriptor size field.
f798b1dda1c5de818b806189e523d1b75db7e72d
Reported-by: Kever Yang <kever.yang@rock-chips.com>
Reported-by: FrostyBytes@protonmail.com
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
-rw-r--r-- | fs/ext4/ext4_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index bfebe7e..621c61e 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -2334,6 +2334,7 @@ int ext4fs_mount(unsigned part_length) if (le32_to_cpu(data->sblock.revision_level) == 0) { fs->inodesz = 128; + fs->gdsize = 32; } else { debug("EXT4 features COMPAT: %08x INCOMPAT: %08x RO_COMPAT: %08x\n", __le32_to_cpu(data->sblock.feature_compatibility), |