4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-17 05:43:31 +08:00
goprife@gmail.com 3b11805964 add jffs2 code (porting from ecos v3.0)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1919 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-01-13 18:45:44 +00:00

24 lines
504 B
C

#include <linux/kernel.h>
#include "nodelist.h"
#include "os-ecos.h"
#include "porting.h"
time_t cyg_timestamp(void)
{
return 0;
}
void jffs2_get_info_from_sb(void * data, struct jffs2_fs_info * info)
{
struct jffs2_fs_info;
struct super_block *jffs2_sb;
struct jffs2_sb_info *c;
jffs2_sb = (struct super_block *)(data);
c = JFFS2_SB_INFO(jffs2_sb);
info->sector_size = c->sector_size;
info->nr_blocks = c->nr_blocks;
info->free_size = c->free_size; //fixme need test!
}