ext4: introduce ext4_trunc_inode to deal with ftruncate operation
[lwext4.git] / lwext4 / ext4_config.h
index 72100ddadda3146191735b6d9e0bf28404484530..17da6bb68116a6ffbd77c58a02842f8b0b3ce989 100644 (file)
 #ifndef EXT4_CONFIG_H_
 #define EXT4_CONFIG_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef CONFIG_HAVE_OWN_CFG
 #include <config.h>
 #endif
 #define CONFIG_DEBUG_PRINTF 1
 #endif
 
-/**@brief   Debug printf prefixes*/
-#ifndef CONFIG_DEBUG_PREFIX
-#define CONFIG_DEBUG_PREFIX 1
-#endif
-
-
 /**@brief   Assert printf enable (stdout)*/
 #ifndef CONFIG_DEBUG_ASSERT
 #define CONFIG_DEBUG_ASSERT 1
 #define CONFIG_EXTENT_FULL 1
 #endif
 
+/**@brief Maximum single truncate size. Transactions must be limited to reduce
+ *        number of allocetions for single transaction*/
+#ifndef CONFIG_MAX_TRUNCATE_SIZE
+#define CONFIG_MAX_TRUNCATE_SIZE (16 * 1024 * 1024)
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EXT4_CONFIG_H_ */
 
 /**