Am Montag 29 Dezember 2008 schrieb Martin Steigerwald:
> Hi!
> Remember
>
> http://oss.sgi.com/pipermail/xfs/2008-November/037399.html
>
> ?
[... about truncated KDE configuration files ...]
> I cannot remember having seen this kind of behavior anywhere between
> 2.6.17.7 and 2.6.26! And I had sudden interruptions of write activity
> from time to time.
>
> I can't prove anything right now. I possibly could if I dare to test
> this again with 2.6.26! But from my experiences this never was so
> massive. Prior to the null file fixes a file or two might have been
> corrupted and that not all the times. Thats to be expected if thats the
> file that where written out at the time. But now it seems that almost
> every file that is opened for writing or not even just for writing is
> truncated seriously at sudden interruption of write activity. Whereas
> before it appeared that usually either the change was not made or it
> was made - at least for small files. Now the file is truncated, no
> holes, just lots less bytes than before.
Ok, I had to test this. So I made a backup of my current KDE configuration
to an external drive and tested with 2.6.25.10 and 2.6.26.5! It happens
there too. So its nothing new what I have observed here. Even the case of
massively truncated files when trying directly after KDE login. Why all
those applications appear to write out their configurations files when
just having been started is a bit beyond me, but well that seems to be
the case.
So it seems with pre 2.6.27 and 2.6.28 sudden power interruptions I had
*lots of luck*. Or there is a very subtile difference in the likelyhood
of truncated files happening. I had the impression during my todays test
that at least with 2.6.25.10 and 2.6.26.5 truncated files were a little
less likely, but I have no means of statistics.
And I do not yet have a comparison with ext3/ext4 either.
So I jumped out of the window with my conclusions too early, or I need to
test even earlier kernels. I hold back an earlier mail about this
already, but this time I thought I'd write an email. Sorry for the noise.
It might be wise however to file enhancement requests for the KDE
applications where I observed this behavior if safer writing within the
applications is possible. Any hints on what application developers should
keep in mind when writing out config files?
Ciao,
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
|