OSDN Git Service

libext2fs: byteswap inode when performing the sanity scan
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 25 Aug 2014 02:00:56 +0000 (22:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 25 Aug 2014 02:00:56 +0000 (22:00 -0400)
commit18b234b121be5c0bbe6865048acaadcac208b7fd
tree787cba79c309933bb302c27b6c52fa6d840cc60a
parent7248e265c7feaa96692b926ecb5a62b40437b7d1
libext2fs: byteswap inode when performing the sanity scan

On BE platforms, we need to swap the inode bytes after doing the
checksum verification but before looking at i_blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/inode.c