weechat-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Weechat-dev] [bug #36383] Config files occasionally truncated (zero-len


From: Mateusz Poszwa
Subject: [Weechat-dev] [bug #36383] Config files occasionally truncated (zero-length) after crash.
Date: Thu, 03 May 2012 13:44:50 +0000
User-agent: Mozilla/5.0 (X11; Linux) AppleWebKit/535.4+ Midori/0.4

URL:
  <http://savannah.nongnu.org/bugs/?36383>

                 Summary: Config files occasionally truncated (zero-length)
after crash.
                 Project: WeeChat
            Submitted by: f8l
            Submitted on: Thu 03 May 2012 15:44:49 CEST
                Category: config file
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.3.7
                IRC nick: f8l

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 03 May 2012 15:44:49 CEST  Name:
0001-Make-config_file_write_internal-perform-an-overwrite.patch  Size: 856B  
By: f8l

<http://savannah.nongnu.org/bugs/download.php?file_id=25772>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36383>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]