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
Kalpak Shah 2007-06-22 22:32:43 -04:00 committed by Theodore Ts'o
parent c844010cc4
commit 915a2669ef
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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 */