Bug 127470

Summary: Program make no use of sparse files, it allocates eg. 200M bytes for eg. 64kB piece of downloaded file.
Product: [Applications] ktorrent Reporter: Michał Gawron <mcvspam>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: wishlist CC: null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Michał Gawron 2006-05-16 21:45:42 UTC
Version:           1.2 (using KDE KDE 3.5.2)
Installed from:    Slackware Packages
OS:                Linux

It would be nice if KTorrent could use sparse-files for downloading (like Azureus for eg). When downloading multiple files and there are some do-not-download files, KTorrent allocates space for whole file (and it may be dnd file).
Comment 1 Joris Guisson 2006-06-10 13:05:30 UTC
SVN commit 549923 by guisson:

Deselected files are no longer kept around in the dnd dir. We only keep a small file which holds the chunks which lie in other files.

BUG: 127470
BUG: 123448



 M  +1 -0      apps/ktorrent/ktorrentview.cpp  
 M  +2 -1      ktorrent.kdevelop  
 M  +2 -1      libktorrent/datachecker/datachecker.h  
 M  +126 -51   libktorrent/datachecker/multidatachecker.cpp  
 M  +8 -2      libktorrent/datachecker/multidatachecker.h  
 M  +1 -1      libktorrent/datachecker/singledatachecker.cpp  
 M  +1 -1      libktorrent/datachecker/singledatachecker.h  
 M  +19 -19    libktorrent/torrent/Makefile.am  
 M  +1 -18     libktorrent/torrent/cachefile.cpp  
 M  +20 -3     libktorrent/torrent/chunkmanager.cpp  
 M  +4 -1      libktorrent/torrent/chunkmanager.h  
 A             libktorrent/torrent/dndfile.cpp   [License: GPL (v2+) (wrong address)]
 A             libktorrent/torrent/dndfile.h   [License: GPL (v2+) (wrong address)]
 M  +2 -2      libktorrent/torrent/globals.cpp  
 M  +287 -35   libktorrent/torrent/multifilecache.cpp  
 M  +4 -0      libktorrent/torrent/multifilecache.h  
 M  +1 -1      libktorrent/torrent/torrentcontrol.cpp  
 M  +11 -0     libktorrent/torrent/torrentfile.cpp  
 M  +7 -0      libktorrent/torrent/torrentfile.h  
 M  +47 -0     libktorrent/util/fileops.cpp  
 M  +18 -0     libktorrent/util/fileops.h  
 M  +4 -4      libktorrent/util/log.cpp  
 M  +4 -7      plugins/partfileimport/importdialog.cpp