[ECOS] Re: RE : [ECOS] Is JFFS2 thread-safe?

David Woodhouse dwmw2@infradead.org
Fri Nov 28 11:09:00 GMT 2003

On Thu, 2003-11-27 at 18:05 +0100, Vincent Catros wrote:
> But it seems that read() and write() lead to a cyg_file_lock which call
> cyg_fs_lock (see fd.cxx).
> So, read() and write() are probably serialized to.

Yes, they do seem to be serialised, since we have
CYG_SYNCMODE_IO_FILESYSTEM set. That shouldn't be needed.

All we need is CYG_SYNCMODE_IO_FILE, to ensure that large writes appear
atomic to other simultaneous readers.


Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list