projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: list buffer size is not correctly returned on ext4_listxattr calls.
[lwext4.git]
/
lwext4
/
ext4_config.h
diff --git
a/lwext4/ext4_config.h
b/lwext4/ext4_config.h
index e7d067fc9ad0cc21c1f31e21a66411402ca263b7..65c8e102e363eb6183985f4982f283df4f2966d1 100644
(file)
--- a/
lwext4/ext4_config.h
+++ b/
lwext4/ext4_config.h
@@
-43,98
+43,103
@@
/*****************************************************************************/
/*****************************************************************************/
-#define F_SET_EXT2
2
-#define F_SET_EXT3
3
-#define F_SET_EXT4
4
+#define F_SET_EXT2 2
+#define F_SET_EXT3 3
+#define F_SET_EXT4 4
#ifndef CONFIG_EXT_FEATURE_SET_LVL
#ifndef CONFIG_EXT_FEATURE_SET_LVL
-#define CONFIG_EXT_FEATURE_SET_LVL
F_SET_EXT4
+#define CONFIG_EXT_FEATURE_SET_LVL F_SET_EXT4
#endif
/*****************************************************************************/
#if CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT2
#endif
/*****************************************************************************/
#if CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT2
-
#define CONFIG_DIR_INDEX_ENABLE
0
-
#define CONFIG_EXTENT_ENABLE
0
+
#define CONFIG_DIR_INDEX_ENABLE
0
+
#define CONFIG_EXTENT_ENABLE
0
-
/*Superblock features flag*/
-
#define CONFIG_FEATURE_COMPAT_SUPP
EXT2_FEATURE_COMPAT_SUPP
+/*Superblock features flag*/
+
#define CONFIG_FEATURE_COMPAT_SUPP
EXT2_FEATURE_COMPAT_SUPP
-
#define CONFIG_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_SUPP |
\
-
FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_INCOMPAT_SUPP
\
+
(EXT2_FEATURE_INCOMPAT_SUPP |
FEATURE_INCOMPAT_IGNORED)
-
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT2_FEATURE_RO_COMPAT_SUPP
+#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT2_FEATURE_RO_COMPAT_SUPP
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT3
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT3
-
#define CONFIG_DIR_INDEX_ENABLE
1
-
#define CONFIG_EXTENT_ENABLE
0
+
#define CONFIG_DIR_INDEX_ENABLE
1
+
#define CONFIG_EXTENT_ENABLE
0
-
/*Superblock features flag*/
-
#define CONFIG_FEATURE_COMPAT_SUPP
EXT3_FEATURE_COMPAT_SUPP
+/*Superblock features flag*/
+
#define CONFIG_FEATURE_COMPAT_SUPP
EXT3_FEATURE_COMPAT_SUPP
-
#define CONFIG_FEATURE_INCOMPAT_SUPP (EXT3_FEATURE_INCOMPAT_SUPP |
\
-
FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_INCOMPAT_SUPP
\
+
(EXT3_FEATURE_INCOMPAT_SUPP |
FEATURE_INCOMPAT_IGNORED)
-
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT3_FEATURE_RO_COMPAT_SUPP
+#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT3_FEATURE_RO_COMPAT_SUPP
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT4
#elif CONFIG_EXT_FEATURE_SET_LVL == F_SET_EXT4
-
#define CONFIG_DIR_INDEX_ENABLE
1
-
#define CONFIG_EXTENT_ENABLE
1
+
#define CONFIG_DIR_INDEX_ENABLE
1
+
#define CONFIG_EXTENT_ENABLE
1
-
/*Superblock features flag*/
-
#define CONFIG_FEATURE_COMPAT_SUPP
EXT4_FEATURE_COMPAT_SUPP
+/*Superblock features flag*/
+
#define CONFIG_FEATURE_COMPAT_SUPP
EXT4_FEATURE_COMPAT_SUPP
-
#define CONFIG_FEATURE_INCOMPAT_SUPP (EXT4_FEATURE_INCOMPAT_SUPP |
\
-
FEATURE_INCOMPAT_IGNORED)
+
#define CONFIG_FEATURE_INCOMPAT_SUPP
\
+
(EXT4_FEATURE_INCOMPAT_SUPP |
FEATURE_INCOMPAT_IGNORED)
-
#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT4_FEATURE_RO_COMPAT_SUPP
+#define CONFIG_FEATURE_RO_COMPAT_SUPP EXT4_FEATURE_RO_COMPAT_SUPP
#else
#define "Unsupported CONFIG_EXT_FEATURE_SET_LVL"
#endif
#else
#define "Unsupported CONFIG_EXT_FEATURE_SET_LVL"
#endif
-
/*****************************************************************************/
/**@brief Enable directory indexing comb sort*/
#ifndef CONFIG_DIR_INDEX_COMB_SORT
/*****************************************************************************/
/**@brief Enable directory indexing comb sort*/
#ifndef CONFIG_DIR_INDEX_COMB_SORT
-#define CONFIG_DIR_INDEX_COMB_SORT
1
+#define CONFIG_DIR_INDEX_COMB_SORT 1
#endif
#endif
-
-
-/**@brief Include error codes from ext4_errno or sandard library.*/
+/**@brief Include error codes from ext4_errno or standard library.*/
#ifndef CONFIG_HAVE_OWN_ERRNO
#ifndef CONFIG_HAVE_OWN_ERRNO
-#define CONFIG_HAVE_OWN_ERRNO
1
+#define CONFIG_HAVE_OWN_ERRNO 1
#endif
#endif
-
/**@brief Debug printf enable (stdout)*/
#ifndef CONFIG_DEBUG_PRINTF
/**@brief Debug printf enable (stdout)*/
#ifndef CONFIG_DEBUG_PRINTF
-#define CONFIG_DEBUG_PRINTF
1
+#define CONFIG_DEBUG_PRINTF 1
#endif
/**@brief Assert printf enable (stdout)*/
#ifndef CONFIG_DEBUG_ASSERT
#endif
/**@brief Assert printf enable (stdout)*/
#ifndef CONFIG_DEBUG_ASSERT
-#define CONFIG_DEBUG_ASSERT 1
+#define CONFIG_DEBUG_ASSERT 1
+#endif
+
+/**@brief Include assert codes from ext4_debug or standard library.*/
+#ifndef CONFIG_HAVE_OWN_ASSERT
+#define CONFIG_HAVE_OWN_ASSERT 1
#endif
/**@brief Statistics of block device*/
#ifndef CONFIG_BLOCK_DEV_ENABLE_STATS
#endif
/**@brief Statistics of block device*/
#ifndef CONFIG_BLOCK_DEV_ENABLE_STATS
-#define CONFIG_BLOCK_DEV_ENABLE_STATS
1
+#define CONFIG_BLOCK_DEV_ENABLE_STATS 1
#endif
/**@brief Cache size of block device.*/
#ifndef CONFIG_BLOCK_DEV_CACHE_SIZE
#endif
/**@brief Cache size of block device.*/
#ifndef CONFIG_BLOCK_DEV_CACHE_SIZE
-#define CONFIG_BLOCK_DEV_CACHE_SIZE
8
+#define CONFIG_BLOCK_DEV_CACHE_SIZE 8
#endif
#endif
-
-/**@brief Ilosc urzadzen blokowych.*/
+/**@brief Maximum block device count*/
#ifndef CONFIG_EXT4_BLOCKDEVS_COUNT
#ifndef CONFIG_EXT4_BLOCKDEVS_COUNT
-#define CONFIG_EXT4_BLOCKDEVS_COUNT
2
+#define CONFIG_EXT4_BLOCKDEVS_COUNT 2
#endif
#endif
-/**@brief
Ilosc punktow montowania systemu plikow
*/
+/**@brief
Maximum mountpoint count
*/
#ifndef CONFIG_EXT4_MOUNTPOINTS_COUNT
#ifndef CONFIG_EXT4_MOUNTPOINTS_COUNT
-#define CONFIG_EXT4_MOUNTPOINTS_COUNT 2
+#define CONFIG_EXT4_MOUNTPOINTS_COUNT 2
+#endif
+
+/**@brief Include open flags from ext4_errno or standard library.*/
+#ifndef CONFIG_HAVE_OWN_OFLAGS
+#define CONFIG_HAVE_OWN_OFLAGS 0
#endif
#endif /* EXT4_CONFIG_H_ */
#endif
#endif /* EXT4_CONFIG_H_ */