Ext4 data loss

Ric Wheeler rwheeler at redhat.com
Fri Mar 13 12:55:01 UTC 2009


Callum Lerwick wrote:
> On Thu, 2009-03-12 at 22:41 -0400, Michel Salim wrote:
>   
>> On Thu, Mar 12, 2009 at 10:03 PM, Kevin Kofler <kevin.kofler at chello.at> wrote:
>>     
>>>> Are Ted's patches, that are queued up for 2.6.30, going to be applied to
>>>> F-11 (and F-10) 2.6.29 kernels or not? Asking just out of curiosity.
>>>>         
>>> I sure hope they will. This is pretty much a blocker for the KDE spin.
>>>
>>>       
>> Is there any design document about how KDE persists configuration
>> files? I have noticed application crashes affecting recently-applied
>> KDE settings in the past, even on ext3, while GConf settings seem to
>> be persisted to disk almost immediately.
>>     
>
> Is KDE Doing It Wrong?
>
> https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/54
>
> rename() is what I mean by atomic filesystem operations.
>   
I would add that you need to fsync() the directories as well to make 
sure that the rename survives a power failure. Note that in the worst 
case without the directory renames, you would still have your old file 
intact (and a temp file to clean up) so it is not horrible.

Ric




More information about the fedora-devel-list mailing list