This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ROMFS in anoncvs
- To: eCos Disuss <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] ROMFS in anoncvs
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Thu, 12 Jul 2001 20:38:42 +0200
Hi Folks
Does the ROMFS code in anoncvs work? I think not?
It appears that the mk_romfs program uses the node.mode with what
linux returns in stat. This means the root directory i just made has
mode 042770, which is drwxrws---. But the eCos IS_DIR macro has a
different idea of what the mode should be. It expects the lower bytes
to contain the file type.
<sys/stat.h>:
#define __stat_mode_DIR (1<<0)
#define S_ISDIR(__mode) ((__mode) & __stat_mode_DIR )
Hence all open() calls fail.
Has something changed here recently? Has anyone run the test program
that comes with the romfs package.
Thanks
Andrew