[Yaffs] Atomicity of writes

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Bob Lee
Date:  
To: yaffs
Subject: [Yaffs] Atomicity of writes
The spec says:

"When a chunk is replaced (eg. file details changed or a part of a file was
overwritten), the new chunk is written before the old chunk is deleted. This
means that we don't lose data if there is a power loss after the new chunk
is created but before the old one is discarded"

Is it safe to assume that partial writes won't persist?

For example, if only 15 bytes get written to an existing page before the
power goes out, when the power comes back, the page will have its original
state, right?

Thanks,
Bob