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]
Other format: [Raw text]

Re: RE : Is JFFS2 thread-safe?


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


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