Whamcloud - gitweb
e2fsck: add kernel endian-ness conversion macros
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>
Wed, 20 Jan 2021 21:26:28 +0000 (13:26 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 15:53:46 +0000 (10:53 -0500)
commit2fc929c65ec9a7d316bbaace7acdd32f8d6184aa
treef5e6e545755910a8ea53a55c06e4ed17958f880d
parent895e8e33beed102189922418ba611cc7528f45e3
e2fsck: add kernel endian-ness conversion macros

In order to make recovery.c identical with kernel, we need endianness
conversion macros (such as cpu_to_be32 and friends) defined in
e2fsprogs. This patch defines these macros and also fixes recovery.c
to use these. These macros are also needed for fast commit recovery
patches later in this series.

Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/recovery.c
lib/ext2fs/jfs_compat.h