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 158072 - Pan continues to download despite disk full -> data loss
Pan continues to download despite disk full -> data loss
Status: RESOLVED DUPLICATE of bug 347654
Product: Pan
Classification: Other
Component: general
0.14.2
Other Linux
: Normal normal
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2004-11-12 17:58 UTC by Ian Ball
Modified: 2006-07-21 19:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The snapshot mentioned in the original bug report. (148.83 KB, image/png)
2004-12-17 19:17 UTC, Charles Kerr
Details

Description Ian Ball 2004-11-12 17:58:15 UTC
This is more a design problem than anything else, but because data loss is 
associated with it, it is bad enough to classify it as a nasty bug. 
 
Quite simply, when pan fails to write either an output file for what it has 
downloaded, or it fails to write a cache file because of the disk being full, 
the downloaded file is lost.  Worse, pan continues to download more articles, 
each of which may, or often will cause a disk full problem, where again the 
downloaded files are lost.  This is also a serious waste of bandwidth, 
especially for those who have limited amounts of data transfer each month. 
 
Additionally, when the disk is full and pan can't write the cache file, the log 
entries contain corrupted names for the failed article.  This is most likely 
because the name of the article is lost through freeing memory where the 
article was stored, then trying to read that memory again.  A snapshot of the 
log window is available at http://midori.shacknet.nu/images/snapshot23.png  I 
also have some concern that this may cause pan to crash, although it did not 
happen for me. 
 
What I think should happen: 
Pan should recognise when the disk space is running out and stop downloading to 
that partiton.  It should be possible to calculate how much space a downloaded 
article will require, and if there is not enough space, pan should suspend all 
tasks that are downloading to that hard drive partition.  Downloads to other 
partitons could continue.  The user must intervene in order for the failed 
downloads to continue.  The failed downloads should not be removed from the 
queue. 
 
Comments: 
Although theoretically the user should be able to control the situation 
themself, accidents do happen and maybe the wrong directory is chosen, as I 
did.  The result was downloading at 2.3Mbit for several hours and losing about 
1.2Gb of downloaded data.  I hope the importance of this can be understood.
Comment 1 Charles Kerr 2004-12-17 19:17:59 UTC
Created attachment 34946 [details]
The snapshot mentioned in the original bug report.
Comment 2 Charles Kerr 2004-12-17 19:38:08 UTC
http://www.koders.com/c++/fidC92FA79C72FE04957649887D947C078C4EA99217.aspx has a
fairly portable way of determining how much free space is available to a
partition... Pan could model off of this.
Comment 3 Charles Kerr 2006-07-21 19:49:55 UTC

*** This bug has been marked as a duplicate of 347654 ***