This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Filesystem problems


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]