diff options
| author | branzhu <branzhu@outlook.com> | 2017-03-24 00:51:51 -0400 |
|---|---|---|
| committer | branzhu <branzhu@outlook.com> | 2017-03-24 00:51:51 -0400 |
| commit | 02eb05014ff09bbadca174a2924ff2bdbc69b97e (patch) | |
| tree | 606e39d4dbe56dbf785c4008a02e8386b8c85896 /src/ext4_mkfs.c | |
| parent | 9c59c0b576a924d6acda7c4b745b668f5e958f5c (diff) | |
Fix issues with big-endian system
Diffstat (limited to 'src/ext4_mkfs.c')
| -rw-r--r-- | src/ext4_mkfs.c | 2 |
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); |
