After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 100444 - full disk will cause ALL settings to be erased
full disk will cause ALL settings to be erased
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.13.1
Other Linux
: Normal major
: 0.14.0
Assigned To: Charles Kerr
Pan QA Team
: 98136 99937 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-05 16:06 UTC by gabrieltalks
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gabrieltalks 2002-12-05 16:06:18 UTC
The other bug I reported was just related to the filters being erased but
this time, accidently moved files to the home partition and it ended up
being 99% full. The result was ALL of pans settings were erased, servers,
perferences, filters, profiles. Checking the files many were zero. Pan
defaulted to the welcoming screen asking for a server setup. It
"remembered" the what was in the queue but then promptly erased that too.
Comment 1 Alex Duggan 2002-12-05 17:34:40 UTC
I don't think there is any way around this for flat text config files.
Comment 2 gabrieltalks 2002-12-05 18:39:28 UTC
in 99937 I suggested redundant backup of the config files. I can tell
you it a bitch just downloading all the headers not to mention
reconstructing filters. I did make backups of the filters from last
time so redundancy will save someone a lot of grief. Something as
simple as a backup directory of the config data not to be directly
access and only copied in case the main config files are lost or
corrupted.

When the files suddenly disappear checks for errors (i.e. disk full
almost full) should be done and pan should refuse to start until it is
corrected.
Comment 3 gabrieltalks 2002-12-11 13:15:49 UTC
A rather simple solution to prevent full disk errors, have a user
define threshold. A pan specific quota function. Once exceeded, pan
flags the partition as full and will not try to repeat or download
more data.

Plus the redundant backup.
Comment 4 Charles Kerr 2003-03-07 05:52:27 UTC
I'm not sure that it makes sense to have redundant copies of
header/group information, but backing up newsrc, config files,
filters, scores, and rules seems like an easy/sensible idea.
Comment 5 Charles Kerr 2003-03-09 16:31:16 UTC
*** Bug 98136 has been marked as a duplicate of this bug. ***
Comment 6 Charles Kerr 2003-03-09 16:32:44 UTC
*** Bug 99937 has been marked as a duplicate of this bug. ***
Comment 7 Charles Kerr 2003-03-14 20:33:52 UTC
Fixed in CVS:

http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/identities&command=DIFF_FRAMESET&file=identity-xml.c&rev1=1.20&rev2=1.21&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/filters&command=DIFF_FRAMESET&file=filter-xml.c&rev1=1.36&rev2=1.37&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/base&command=DIFF_FRAMESET&file=util-file.h&rev1=1.14&rev2=1.15&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/base&command=DIFF_FRAMESET&file=util-file.c&rev1=1.40&rev2=1.41&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/base&command=DIFF_FRAMESET&file=pan-config.c&rev1=1.28&rev2=1.29&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/base&command=DIFF_FRAMESET&file=newsrc-port.c&rev1=1.20&rev2=1.21&root=/cvs/gnome
http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan/base&command=DIFF_FRAMESET&file=file-grouplist.c&rev1=1.36&rev2=1.37&root=/cvs/gnome

2003-03-14  Charles Kerr <charles@rebelbase.com>

(Datafile Backups)

* pan/base/util-file.c (pan_file_swap_datafile): utility for moving
  a temporary file into a real datafile location.  Any previous real
  datafile is backed up, and if the temporary -> real substitution
  fails, the datafile is restored from the backup.
* pan/base/file-grouplist.c (save_groups_to_file): sync.
* pan/base/newsrc-port.c (newsrc_export): sync.
* pan/filters/filter-xml.c (filter_xml_write): sync.
* pan/identities/identity-xml.c (identity_xml_write): sync.

* pan/base/util-file.c (pan_file_write_datafile): utility wrapper
  around pan_file_swap_datafile() for files small enough to hold
  in memory.  Pass the memory to pan_file_write_datafile(), which
  will write it to a temporary file and invoke
  pan_file_swap_datafile(), so that the caller doesn't have to
  mess with the tempfile.
* pan/base/pan-config.c (pan_config_save): sync.