From 1952ab467c1a98060b7cca7e3545cf958c106b00 Mon Sep 17 00:00:00 2001 From: Sheng Yong Date: Sat, 30 Jan 2016 09:16:37 +0000 Subject: [PATCH] f2fs-tools: fix endianness of on-disk check_sum in summary_footer Signed-off-by: Sheng Yong Signed-off-by: Jaegeuk Kim --- include/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index e1eeb6e..b58aa74 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -705,7 +705,7 @@ struct f2fs_summary { struct summary_footer { unsigned char entry_type; /* SUM_TYPE_XXX */ - __u32 check_sum; /* summary checksum */ + __le32 check_sum; /* summary checksum */ } __attribute__((packed)); #define SUM_JOURNAL_SIZE (F2FS_BLKSIZE - SUM_FOOTER_SIZE -\ -- 2.7.4