JFFS2 atomic write?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Are file writes using JFFS2 atomic?

For example:
1. There is a file which has been written to FLASH.
2. The file is opened,  modified and closed.  The file may occupy
   multiple sectors in the FLASH.
3. While the file is being written, power is lost.

Am I guranteed to either get the complete old file or the
complete new file.  Or could it be something in between.

It looks like the filesystem metadata is handled atomically, but
it's not obvious to me if this extends to the user data as well.

Cheers,
Mike

Site Timeline