ref: 8be3eaa05aa4b952a6a788da2092d6c99bada5ef
parent: 3cacad2a0255cec9b3814276d5252120fac6de73
author: gkostka <[email protected]>
date: Sat Nov 14 07:18:44 EST 2015
ext4_mkfs is able to create image with sblock and basic features TBD: - block groups descriptors - ext3/ext4 feature handling - root and lost+found directories - journal inode
--- a/lwext4/ext4_mkfs.c
+++ b/lwext4/ext4_mkfs.c
@@ -391,12 +391,12 @@
info->inodes_per_group = compute_inodes_per_group(info);
- info->feat_compat = CONFIG_SUPPORTED_FCOM;
- info->feat_ro_compat = CONFIG_SUPPORTED_FRO_COM;
- info->feat_incompat = CONFIG_SUPPORTED_FINCOM;
+ info->feat_compat = EXT2_SUPPORTED_FCOM;
+ info->feat_ro_compat = EXT2_SUPPORTED_FRO_COM;
+ info->feat_incompat = EXT2_SUPPORTED_FINCOM;
if (info->no_journal == 0)
- info->feat_compat |= EXT4_FCOM_HAS_JOURNAL;
+ info->feat_compat |= 0;
info->bg_desc_reserve_blocks = compute_bg_desc_reserve_blocks(info);