Data corruption

Sandor Bodo-Merle sbodomerle at gmail.com
Sun Jun 21 10:57:51 MDT 2009


One more thing - tellico does not call the FileHandler::FileRef::~FileRef()
destructor, which means that several versions of the file are kept open -
and which makes the situation worse, as unix dont free the space till there
are open file descriptors. The below excerpt from lsof show several version
of the tellico file. You can see two truncated files during this session
with the sizes 9453568 and 4919296.

So when these files are closed btw (when is the FileRef destructor called)?
Only at tellico exit? Or eventually at the next save of the file, where
tellico reopens the file, and updates the FileRef object?

tellico 13054 sbodo   11r   REG              252,4 21680635 33563475
/home/sbodo/Desktop/ekonyveim.tc (deleted)
tellico 13054 sbodo   13u   REG              252,4 21688347 33563477
/home/sbodo/Desktop/ekonyveim.tc~ (deleted)
tellico 13054 sbodo   14u   REG              252,4 21680635 33554591
/home/sbodo/Desktop/ekonyveim.tc~ (deleted)
tellico 13054 sbodo   15u  unix 0xffff880041bd1e00      0t0    97086
/tmp/ksocket-sbodoBgwM2L/tellicoF13054.slave-socket
tellico 13054 sbodo   18u   REG              252,4  9453568 33632748
/home/sbodo/Desktop/ekonyveim.tc~ (deleted)
tellico 13054 sbodo   19u  unix 0xffff880041bd2100      0t0    97099
/tmp/ksocket-sbodoBgwM2L/tellicoy13054.slave-socket
tellico 13054 sbodo   20u   REG              252,4  4919296 33632749
/home/sbodo/Desktop/ekonyveim.tc~


On Sun, Jun 21, 2009 at 6:20 PM, Sandor Bodo-Merle <sbodomerle at gmail.com>wrote:

> http://lwn.net/Articles/322823/
>
> And for the moment ill try to make sure there is enough free space on XFS
> ....
>
>
> On Sun, Jun 21, 2009 at 6:01 PM, Sandor Bodo-Merle <sbodomerle at gmail.com>wrote:
>
>> I was able to reproduce the situation again. But i have a feeling that
>> this is related to the XFS filesystem i use.
>> Tellico can be triggered to write a truncated zip file on save, without
>> any warning,when there is low disk space and there is at least a concurrent
>> write happening (a download for example ....)
>>
>> Sanyi
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://forge.novell.com/pipermail/tellico-users/attachments/20090621/5e1c6deb/attachment.html


More information about the tellico-users mailing list