This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Filesystem problems
- To: Stijn Symons <stijn dot symons at acunia dot com>
- Subject: Re: [ECOS] Filesystem problems
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Fri, 31 Aug 2001 10:39:29 +0200
- Cc: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- References: <3B8F675E.DFAE7BA7@acunia.com>
> Do we have to initialize a filesystem, or mount it or something?
Yes. There are two ways of doing this. You can either statically mount
it, using the macro:
MTAB_ENTRY( romfs_mte1,
"/",
"romfs",
"",
(CYG_ADDRWORD) &filedata[0] );
or you can mount it using mount().
Have a look at the tests programs
packages/fs/ram/current/tests/fileio1.c
packages/fs/rom/current/tests/fileio1.c
and the documentation in
packages/io/fileio/current/doc/fileio.txt
Andrew