mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
ext4: add support for filesystems without JOURNAL
JOURNAL is optional for EXT4 (and EXT3) filesystems, so add support for skipping it. This fixes corrupting EXT4 volumes without JOURNAL after using uboot's 'ext4write' command. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
committed by
Tom Rini
parent
1c9f8f6412
commit
bd8fbd8a13
@@ -645,6 +645,10 @@ void ext4fs_update_journal(void)
|
||||
struct ext_filesystem *fs = get_fs();
|
||||
long int blknr;
|
||||
int i;
|
||||
|
||||
if (!(fs->sb->feature_compatibility & EXT4_FEATURE_COMPAT_HAS_JOURNAL))
|
||||
return;
|
||||
|
||||
ext4fs_read_inode(ext4fs_root, EXT2_JOURNAL_INO, &inode_journal);
|
||||
blknr = read_allocated_block(&inode_journal, jrnl_blk_idx++, NULL);
|
||||
update_descriptor_block(blknr);
|
||||
|
Reference in New Issue
Block a user