Whamcloud - gitweb
e2fsprogs: Use 32-bit variant of ext2fs_swab to read i_projid
authorChandan Rajendra <chandan@linux.vnet.ibm.com>
Wed, 23 May 2018 03:22:07 +0000 (08:52 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 May 2018 21:28:33 +0000 (17:28 -0400)
commitdb41ae2c3e4716ceffe212a742d3c963e400fa1e
tree7057ddedd8d9e04b9e1734008b9b8dabdf2b717a
parent7b9ea51db3be8972c7a17de25be179b18fc9fcde
e2fsprogs: Use 32-bit variant of ext2fs_swab to read i_projid

i_projid is a 32-bit field of the inode. Hence this commit uses
ext2fs_swab32() to convert the i_projid field from the on-disk little
endian format to the host cpu format. Without this change, project quota
consistency check used to fail on big endian powerpc systems.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
lib/ext2fs/swapfs.c