提交 bcc4893d 编写于 作者: G goprife@gmail.com

1) add jffs2's dirty space size to total free size 2) change JFFS2_NAME_MAX to 23

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2497 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 a741197f
......@@ -4,7 +4,7 @@
#define __ECOS /* must be defined */
#define FILE_PATH_MAX 128 /* the longest file path */
#define CONFIG_JFFS2_ENTRY_NAME_MAX 8
#define CONFIG_JFFS2_ENTRY_NAME_MAX 23
#define JFFS2_NAME_MAX CONFIG_JFFS2_ENTRY_NAME_MAX
#define JFFS2_PATH_MAX FILE_PATH_MAX
......
......@@ -19,7 +19,7 @@ void jffs2_get_info_from_sb(void * data, struct jffs2_fs_info * info)
info->sector_size = c->sector_size;
info->nr_blocks = c->nr_blocks;
info->free_size = c->free_size; //fixme need test!
info->free_size = c->free_size + c->dirty_size; //fixme need test!
}
int jffs2_porting_stat(cyg_mtab_entry * mte, cyg_dir dir, const char *name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册