2012-11-27 14:15:51 +08:00
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include "nodelist.h"
|
|
|
|
|
|
|
|
#include "porting.h"
|
|
|
|
|
2012-02-07 11:53:11 +08:00
|
|
|
time_t jffs2_get_timestamp(void)
|
2012-01-14 02:45:44 +08:00
|
|
|
{
|
|
|
|
return 0;
|
2012-11-27 14:15:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void jffs2_get_info_from_sb(void * data, struct jffs2_fs_info * info)
|
|
|
|
{
|
|
|
|
struct jffs2_fs_info;
|
2012-01-14 02:45:44 +08:00
|
|
|
struct super_block *jffs2_sb;
|
2012-11-27 14:15:51 +08:00
|
|
|
struct jffs2_sb_info *c;
|
|
|
|
|
2012-01-14 02:45:44 +08:00
|
|
|
jffs2_sb = (struct super_block *)(data);
|
|
|
|
c = JFFS2_SB_INFO(jffs2_sb);
|
|
|
|
|
|
|
|
info->sector_size = c->sector_size;
|
|
|
|
info->nr_blocks = c->nr_blocks;
|
2012-11-27 14:15:51 +08:00
|
|
|
info->free_size = c->free_size; //fixme need test!
|
|
|
|
}
|
|
|
|
|
2012-01-31 09:29:22 +08:00
|
|
|
int jffs2_porting_stat(cyg_mtab_entry * mte, cyg_dir dir, const char *name,
|
2012-11-27 14:15:51 +08:00
|
|
|
void * stat_buf)
|
|
|
|
{
|
|
|
|
return jffs2_fste.stat(mte, mte->root, name, (struct stat *)stat_buf);
|
|
|
|
}
|