This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RE : Is JFFS2 thread-safe?
- From: David Woodhouse <dwmw2 at infradead dot org>
- To: Vincent Catros <Vincent dot Catros at elios-informatique dot fr>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 28 Nov 2003 11:09:03 +0000
- Subject: [ECOS] Re: RE : [ECOS] Is JFFS2 thread-safe?
- References: <000e01c3b508$b6f34d30$7407a8c0@figuier>
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.
--
dwmw2
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss