mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
fs/ext4: Support device block sizes != 512 bytes
The 512 byte block size was hard coded in the ext4 file systems. Large harddisks today support bigger block sizes typically 4096 bytes. This patch removes this limitation. Signed-off-by: Egbert Eich <eich@suse.com>
This commit is contained in:
@@ -534,16 +534,14 @@ end:
|
||||
jsb->s_start = cpu_to_be32(1);
|
||||
jsb->s_sequence = cpu_to_be32(be32_to_cpu(jsb->s_sequence) + 1);
|
||||
/* get the superblock */
|
||||
ext4fs_devread(SUPERBLOCK_SECTOR, 0, SUPERBLOCK_SIZE,
|
||||
(char *)fs->sb);
|
||||
ext4_read_superblock((char *)fs->sb);
|
||||
fs->sb->feature_incompat |= EXT3_FEATURE_INCOMPAT_RECOVER;
|
||||
|
||||
/* Update the super block */
|
||||
put_ext4((uint64_t) (SUPERBLOCK_SIZE),
|
||||
(struct ext2_sblock *)fs->sb,
|
||||
(uint32_t) SUPERBLOCK_SIZE);
|
||||
ext4fs_devread(SUPERBLOCK_SECTOR, 0, SUPERBLOCK_SIZE,
|
||||
(char *)fs->sb);
|
||||
ext4_read_superblock((char *)fs->sb);
|
||||
|
||||
blknr = read_allocated_block(&inode_journal,
|
||||
EXT2_JOURNAL_SUPERBLOCK);
|
||||
|
Reference in New Issue
Block a user