mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
ext4: fix endianess problems in ext4 write support
All fields were accessed directly instead of using the proper byte swap functions. Thus, ext4 write support was only usable on little-endian architectures. Fix this. Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
#define LOG2_BLOCK_SIZE(data) (le32_to_cpu \
|
||||
(data->sblock.log2_block_size) \
|
||||
+ EXT2_MIN_BLOCK_LOG_SIZE)
|
||||
#define INODE_SIZE_FILESYSTEM(data) (le32_to_cpu \
|
||||
#define INODE_SIZE_FILESYSTEM(data) (le16_to_cpu \
|
||||
(data->sblock.inode_size))
|
||||
|
||||
#define EXT2_FT_DIR 2
|
||||
|
Reference in New Issue
Block a user