[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Major JFFS2 bug (?)
Thanks, you are correct of course. My description was more applicable to a
"cp" rather than a "mv". My bad.
I'm glad that people are paying attention and not letting me get away with
random statements :)
Any opinion on the lack of file *data* reliability in JFFS2 while
overwriting an existing file vs file *system* reliability, which is
guranteed by JFFS2, in the case of a power fail during write()?
Bjorn Wesen wrote:
> On Sun, 13 May 2001, Vipin Malik wrote:
> > The answer is most likely yes, but JFFS has nothing to do with that, as
> > that is most likey being guranteed by the "mv" command not deleting the
> > <src> file till it successfully copies it over the <dest> file.
> No, rename is guaranteed to be atomic by the OS. It's commonly used for
> synchronization. Therefore, ideally the filesystem should implement it
> atomically as well. JFFS did it atomically because of this, to avoid
> surprises should the system crash during the operation.
> (usual disclaimers about rename and NFS or between filesystems apply)
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to firstname.lastname@example.org