diff options
author | Changman Lee <cm224.lee@samsung.com> | 2014-11-13 20:15:05 +0900 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2015-03-23 10:10:26 -0700 |
commit | 631e2d9820b5bdb9f79cdcd8c9df7ca7f7ee3e41 (patch) | |
tree | 193e48cb8244e6f9886a5802b086a1e2848297ad /mkfs | |
parent | a0b4fabc5dbadcc523de116dae5151e770a1475f (diff) | |
download | android_external_f2fs-tools-631e2d9820b5bdb9f79cdcd8c9df7ca7f7ee3e41.tar.gz android_external_f2fs-tools-631e2d9820b5bdb9f79cdcd8c9df7ca7f7ee3e41.tar.bz2 android_external_f2fs-tools-631e2d9820b5bdb9f79cdcd8c9df7ca7f7ee3e41.zip |
mkfs.f2fs: fix missing endian conversion
This is for conversion from cpu to little endian and vice versa.
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'mkfs')
-rw-r--r-- | mkfs/f2fs_format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index 0a9d728..c0028a3 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -71,7 +71,7 @@ static void configure_extension_list(void) memcpy(super_block.extension_list[i++], *extlist, name_len); extlist++; } - super_block.extension_count = i; + super_block.extension_count = cpu_to_le32(i); if (!ext_str) return; @@ -86,7 +86,7 @@ static void configure_extension_list(void) break; } - super_block.extension_count = i; + super_block.extension_count = cpu_to_le32(i); free(config.extension_list); } @@ -211,7 +211,7 @@ static int f2fs_prepare_super_block(void) if (max_sit_bitmap_size > (CHECKSUM_OFFSET - sizeof(struct f2fs_checkpoint) + 65)) { max_nat_bitmap_size = CHECKSUM_OFFSET - sizeof(struct f2fs_checkpoint) + 1; - super_block.cp_payload = F2FS_BLK_ALIGN(max_sit_bitmap_size); + super_block.cp_payload = cpu_to_le32(F2FS_BLK_ALIGN(max_sit_bitmap_size)); } else { max_nat_bitmap_size = CHECKSUM_OFFSET - sizeof(struct f2fs_checkpoint) + 1 - max_sit_bitmap_size; |