OSDN Git Service

Fix byte swapping bug in get_next_inode_full()
authorKalpak Shah <kalpak@clusterfs.com>
Sat, 30 Jun 2007 01:40:19 +0000 (21:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Jun 2007 01:40:19 +0000 (21:40 -0400)
commit1ed49d2c2ab7fdb02158d5feeb86288ece7eb17c
treec556b7318e053df9c798122daf45f4c4fcad0294
parentd7b64725eecb06b2bbc5e90dc338d8d08152a932
Fix byte swapping bug in get_next_inode_full()

On big-endian systems, while swapping, ext2fs_swap_inode_full() swaps
only 128+extra_isize bytes and the EAs if they are present. Now if inode
N has EAs, (and this is the inode in the "scratch inode") then inode N+1
also carries seems to have them since the "scratch inode" was never
zeroed.

Signed-off-by: Kalpak Shah <kalpak@clusterfs.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ChangeLog
lib/ext2fs/inode.c