projects
/
lwext4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext4: introduce ext4_trunc_inode to deal with ftruncate operation
[lwext4.git]
/
lwext4
/
ext4_config.h
diff --git
a/lwext4/ext4_config.h
b/lwext4/ext4_config.h
index 1b25106796658a82030fbf805f409094a4ab6a40..17da6bb68116a6ffbd77c58a02842f8b0b3ce989 100644
(file)
--- a/
lwext4/ext4_config.h
+++ b/
lwext4/ext4_config.h
@@
-138,6
+138,12
@@
extern "C" {
#define CONFIG_EXTENT_FULL 1
#endif
#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
#ifdef __cplusplus
}
#endif