« Return to Thread: Data corruption

Re: Data corruption

by robbystephenson :: Rate this Message:

Reply to Author | View in Thread

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@...>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



_______________________________________________
tellico-users mailing list
tellico-users@...
http://forge.novell.com/mailman/listinfo/tellico-users

 « Return to Thread: Data corruption