Skip to content

Commit

Permalink
fs/ext4: Initialize group descriptor size for revision level 0 filesy…
Browse files Browse the repository at this point in the history
…stems

genext2fs creates revision level 0 filesystems, which are not readable
by u-boot due to the initialized group descriptor size field.
f798b1d

Reported-by: Kever Yang <[email protected]>
Reported-by: [email protected]
Signed-off-by: Stefan Brüns <[email protected]>
Tested-by: Kever Yang <[email protected]>
  • Loading branch information
StefanBruens authored and trini committed Dec 27, 2016
1 parent 139f7b1 commit 3cc5bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/ext4_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3cc5bbb

Please sign in to comment.