#582 Data loss on full disk

open
nobody
None
5
2004-04-17
2004-04-17
Erich Schubert
No

Hi,
this is a serious issue, see also debian bug
http://bugs.debian.org/147832
or sourceforge bug 836345.

When the disk is full any data written by xchat will
get lost.
xchat needs a proper write error handling.

Attached is an example, (hopefully) catching write
errors for the server list. This is not the cleanest
code, i'd suggest using glib iostreams or so for it,
which use an GError object.

Discussion

  • Erich Schubert
    Erich Schubert
    2004-04-17

    Patch for not losing serverlist on full disk.

     
  • Peter Zelezny.
    Peter Zelezny.
    2004-04-18

    Logged In: YES
    user_id=5012

    Please see the HACKING file inside the tarball on
    information on contributing code (esp. coding style and use
    of // comments).

    Honestly, this code looks ugly. Maybe look at how cfgfiles.c
    does it.

     
  • Are you aware that this bug still exists on xchat 2.8.8?
    Are there any plans to fix it?