bugWeeChat - Bugs: bug #36383, Config files occasionally...

 
 

bug #36383: Config files occasionally truncated (zero-length) after crash.

Submitted by:  Mateusz Poszwa <f8l>
Submitted on:  Thu 03 May 2012 01:44:49 PM UTC  
 
Category: config fileSeverity: 3 - Normal
Item Group: otherStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.7IRC nick: f8l

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 03 May 2012 01:44:49 PM UTC, original submission:

Contents of ~/.weechat/weechat.conf and other config files are sometimes disappear after a power outage or other crash.
This was probably caused by the fact that some filesystems are unable rename a file atomically if the rename doesn't overwrite another file.

More information about overwrite-by-rename: http://btrfs.ipv5.de/index.php?title=FAQ#What_are_the_crash_guarantees_of_overwrite-by-rename.3F

I attach a simple patch that may fix the problem.

Mateusz Poszwa <f8l>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Updated the item)
  • -unavailable- added by f8l (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Jun 2012 08:18:47 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Thu 03 May 2012 02:11:36 PM UTCflashcodeItem GroupNone=>other
      StatusNone=>Fixed
      Assigned toNone=>flashcode
    Thu 03 May 2012 01:44:49 PM UTCf8lAttached File-=>Added 0001-Make-config_file_write_internal-perform-an-overwrite.patch, #25772

    Back to the top


    Powered by Savane 3.1-cleanup1