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]

ROMFS in anoncvs


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


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