e2fsprogs/lib
Darrick J. Wong 9026b3db3a libext2fs: Always swab the MMP block on big-endian systems machines
The MMP code in libext2fs tries to gate MMP block swab'ing with this
test:

if (fs->super->s_magic == ext2fs_swab16(EXT2_SUPER_MAGIC))

However, EXT2FS_ENABLE_SWAPFS never seems to be defined anywhere (all
possible existed, the field fs->super->s_magic is always in host
byteorder, so the test always fails.  So, we can change the #ifdef to
WORDS_BIGENDIAN (which is conditionally defined on BE platforms) and
get rid of the broken if test.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-30 21:28:30 -04:00
..
blkid Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
e2p ext2fs: add multi-mount protection (INCOMPAT_MMP) 2011-09-25 01:55:23 -04:00
et Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
ext2fs libext2fs: Always swab the MMP block on big-endian systems machines 2011-09-30 21:28:30 -04:00
quota libquota: use ext2fs byte swapping functions for portability 2011-09-28 20:08:37 -04:00
ss Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
uuid Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
Makefile.bsd-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.checker Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.darwin-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.elf-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.library Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.profile Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.solaris-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
config.h.in Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
dirpaths.h.in Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
fpopen.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00