kconfig's file handling (was: XFS: how to NOT null files on fsck?)

Waldo Bastian bastian at kde.org
Tue Jul 13 13:31:43 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue July 13 2004 13:05, Oswald Buddenhagen wrote:
> heya,
>
> read the attachement first (put on your asbestos underwear first ;).
> not exactly news to me, but somehow i never got to fixing it ...

There is nothing to fix, we already use a tempfile + rename, it's in KSaveFile 
since 1999. Or just look with strace if you don't believe me. This Tim 
Connors guy shouldn't talk about things he obviously knows nothing about.

As far as I can see the problem is that the filesystem writes out the meta 
data before the actual file data hits the disk which creates a period of time 
in which the on-disk state of the filesystem contains trashed files. I 
believe ReiserFS actually has an option to do things in a sane order so that 
it doesn't trash recently used files on an unclean shutdown.

The sentiment among filesystem developers seem to be that they don't care if 
they trash files as long as the filesystem itself remains in a consistent 
state. This kind of dataloss is the result of that attitude, either go 
complain with them if it bothers you, or use a filesystem that does it right.

Cheers,
Waldo
- -- 
bastian at kde.org  |   KDE Community World Summit 2004  |  bastian at suse.com
bastian at kde.org  | 21-29 August, Ludwigsburg, Germany |  bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFA89YvN4pvrENfboIRAptaAJ9YBv63UUL7Elcl3QsjYJPbGche7wCdEzKr
Y+I4Kyi+p+r/gPixNdXQphE=
=c3HD
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list