mirror of https://github.com/vitalif/e2fsprogs
Fix ext2fs_read_inode_full() so that the whole inode is byte-swapped
Signed-off-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>bitmap-optimize
parent
c844010cc4
commit
915a2669ef
|
@ -1,5 +1,8 @@
|
|||
2007-06-22 Theodore Tso <tytso@mit.edu>
|
||||
|
||||
* inode.c (ext2fs_read_inode_full): Pass in bufsize so the full
|
||||
inode is byte-swapped.
|
||||
|
||||
* swapfs.c (ext2fs_swap_inode_full): Fix byte-swapping issues for
|
||||
i_extra_size field.
|
||||
|
||||
|
|
|
@ -586,7 +586,7 @@ errcode_t ext2fs_read_inode_full(ext2_filsys fs, ext2_ino_t ino,
|
|||
(fs->flags & EXT2_FLAG_SWAP_BYTES_READ))
|
||||
ext2fs_swap_inode_full(fs, (struct ext2_inode_large *) inode,
|
||||
(struct ext2_inode_large *) inode,
|
||||
0, length);
|
||||
0, bufsize);
|
||||
#endif
|
||||
|
||||
/* Update the inode cache */
|
||||
|
|
Loading…
Reference in New Issue