tags:

views:

4

answers:

0

Hi ALL,

I am using YAFFS1 file system on RAM and I use the prefix "/ram" for YAFFS initialization i,e, I use the following structure for YAFFS initialization

static yaffsfs_DeviceConfiguration yaffsfs_config[] = {

{ "/ram", &ramDev}, //{ "/boot", &bootDev}, //{ "/flash", &flashDev}, {(void *)0,(void *)0};

and I call,

yaffs_StartUp (); yaffs_mount ("/ram");

in my main function before accesssing any files on it.

With this configuaration, I need to use the prefix "/ram" for accessing the files on YAFFS in it's file path. But I need to access the files without "/ram" prefix. How do I do that ? I tried using "/" in yaffsfs_DeviceConfiguration in struct and in yaffs_mount. But no luck. Any help is appreciated.

Regards, Kiran