[Yaffs] Re: Performance of overwrite vs new file

Sergei Sharonov sergei.sharonov at halliburton.com
Thu Oct 13 00:36:08 BST 2005


Hi,

> Can YAFFS detect this situation and effectively "unlink" the file first?

No, it should not. If the power is cycled between the unlink and open you will 
end up with no file at all. This is not an expected behaviour. It is ok to 
unlink and open from your application as long as you understand the 
repercussions but IMHO it is not ok to do it behind the scene.

Sergei




More information about the yaffs mailing list