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
This commit is contained in:
goprife@gmail.com 2012-12-19 02:42:23 +00:00
parent a741197fa7
commit bcc4893d23
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#define __ECOS /* must be defined */ #define __ECOS /* must be defined */
#define FILE_PATH_MAX 128 /* the longest file path */ #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_NAME_MAX CONFIG_JFFS2_ENTRY_NAME_MAX
#define JFFS2_PATH_MAX FILE_PATH_MAX #define JFFS2_PATH_MAX FILE_PATH_MAX

View File

@ -19,7 +19,7 @@ void jffs2_get_info_from_sb(void * data, struct jffs2_fs_info * info)
info->sector_size = c->sector_size; info->sector_size = c->sector_size;
info->nr_blocks = c->nr_blocks; 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, int jffs2_porting_stat(cyg_mtab_entry * mte, cyg_dir dir, const char *name,