ref: ccb2ee2532d9d0684a64fb8d5ebb76b90f0c5775
parent: b151d01ea4b5af5160b9d215387b1b37458a6f53
author: gkostka <kostka.grzegorz@gmail.com>
date: Tue Oct 28 21:49:00 EDT 2014
Add extra config options
--- a/lwext4/ext4_config.h
+++ b/lwext4/ext4_config.h
@@ -57,25 +57,34 @@
#define CONFIG_DIR_INDEX_ENABLE 0
#define CONFIG_EXTENT_ENABLE 0
- /*Superblock feature flag*/
+ /*Superblock features flag*/
#define CONFIG_FEATURE_COMPAT_SUPP EXT2_FEATURE_COMPAT_SUPP
- #define CONFIG_FEATURE_INCOMPAT_SUPP EXT2_FEATURE_INCOMPAT_SUPP
+
+ #define CONFIG_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_SUPP | \
+ FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT2_FEATURE_RO_COMPAT_SUPP
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT3
#define CONFIG_DIR_INDEX_ENABLE 1
#define CONFIG_EXTENT_ENABLE 0
- /*Superblock feature flag*/
+ /*Superblock features flag*/
#define CONFIG_FEATURE_COMPAT_SUPP EXT3_FEATURE_COMPAT_SUPP
- #define CONFIG_FEATURE_INCOMPAT_SUPP EXT3_FEATURE_INCOMPAT_SUPP
+
+ #define CONFIG_FEATURE_INCOMPAT_SUPP (EXT3_FEATURE_INCOMPAT_SUPP | \
+ FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT3_FEATURE_RO_COMPAT_SUPP
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT4
#define CONFIG_DIR_INDEX_ENABLE 1
#define CONFIG_EXTENT_ENABLE 1
- /*Superblock feature flag*/
+ /*Superblock features flag*/
#define CONFIG_FEATURE_COMPAT_SUPP EXT4_FEATURE_COMPAT_SUPP
- #define CONFIG_FEATURE_INCOMPAT_SUPP EXT4_FEATURE_INCOMPAT_SUPP
+
+ #define CONFIG_FEATURE_INCOMPAT_SUPP (EXT4_FEATURE_INCOMPAT_SUPP | \
+ FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT4_FEATURE_RO_COMPAT_SUPP
#else
#define "Unsupported CONFIG_EXT_FEATURE_SET_LVL"
--- a/lwext4/ext4_types.h
+++ b/lwext4/ext4_types.h
@@ -281,7 +281,7 @@
* */
#define FEATURE_INCOMPAT_IGNORED \
EXT4_FEATURE_INCOMPAT_RECOVER | \
- EXT4_FEATURE_INCOMPAT_MMP)
+ EXT4_FEATURE_INCOMPAT_MMP
#if 0
/*TODO: Features incompatible to implement*/