Data corruption

Robby Stephenson robby at periapsis.org
Tue Jun 16 18:23:37 MDT 2009


On Sunday 14 June 2009, Sandor Bodo-Merle wrote:
> Tellico does not check the return values of KZip::writeFile in
> tellicozipexporter. The question is how to handle a failure?

That's just the temporary buffer. The writing to disk takes place in the 
FileHandler class which uses the KSaveFile class, which is supposed to 
guarantee atomically (all or nothing). Your results say that it is not 
working.

From the API doc, maybe I need to call saveFile.flush() before callign 
saveFile.finalize(). I'm not sure, though.

But the intent is to have the check for file system space in there.

Robby

> On Sun, Jun 14, 2009 at 6:58 PM, Sandor Bodo-Merle 
<sbodomerle at gmail.com>wrote:
> > Hi Robby,
> >
> > with current svn HEAD you will get silent data corruption when there is
> > no more space on the file system to write the new *.tc file.
> > The size of the tc file will be much smaller, and tellico is not able
> > to open it on the next start.
> >
> > br
> > Sanyi





More information about the tellico-users mailing list