summaryrefslogtreecommitdiff
path: root/src/ext4_mkfs.c
diff options
context:
space:
mode:
authorbranzhu <branzhu@outlook.com>2017-03-24 00:51:51 -0400
committerbranzhu <branzhu@outlook.com>2017-03-24 00:51:51 -0400
commit02eb05014ff09bbadca174a2924ff2bdbc69b97e (patch)
tree606e39d4dbe56dbf785c4008a02e8386b8c85896 /src/ext4_mkfs.c
parent9c59c0b576a924d6acda7c4b745b668f5e958f5c (diff)
Fix issues with big-endian system
Diffstat (limited to 'src/ext4_mkfs.c')
-rw-r--r--src/ext4_mkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext4_mkfs.c b/src/ext4_mkfs.c
index 81867d6..cd27c68 100644
--- a/src/ext4_mkfs.c
+++ b/src/ext4_mkfs.c
@@ -388,7 +388,7 @@ static int write_bgroups(struct ext4_blockdev *bd, struct fs_aux_info *aux_info,
bg_free_blk);
ext4_bg_set_free_inodes_count(bg_desc,
- aux_info->sb, aux_info->sb->inodes_per_group);
+ aux_info->sb, to_le32(aux_info->sb->inodes_per_group));
ext4_bg_set_used_dirs_count(bg_desc, aux_info->sb, 0);