diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-08-18 10:08:47 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-08-18 10:08:47 +0000 |
| commit | 657a40935e73bcb8a71e98b5716d31dd30aa458b (patch) | |
| tree | 1249f0b68c173b79d11d7dc4280a8f70494e8c1e /src/DefaultDiskWriter.cc | |
| parent | 3cc1ed5e0907e9adb3b258ba1b94e3bda64c4219 (diff) | |
2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Avoid sparse files if possible, because VFAT32 doesn't support
it.
* src/DefaultDiskWriter.cc (initAndOpenFile)
Fixed the bug that prevents file allocation is not done when
dowloading multi-torrent file.
* src/AbstractDiskWriter.cc (openFile)
Increase the maximum number of -j option from 15 to 45.
* src/OptionHandlerFactory.cc (createOptionHandlers)
Added fr.po, thanks to Charles Landemaine.
* po/fr.po
* po/LINGUAS
Diffstat (limited to 'src/DefaultDiskWriter.cc')
| -rw-r--r-- | src/DefaultDiskWriter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DefaultDiskWriter.cc b/src/DefaultDiskWriter.cc index c07095ce..4ddef412 100644 --- a/src/DefaultDiskWriter.cc +++ b/src/DefaultDiskWriter.cc @@ -53,7 +53,7 @@ void DefaultDiskWriter::initAndOpenFile(const string& filename, try { if(totalLength > 0) { if(fileAllocator.isNull()) { - ftruncate(fd, totalLength); + ftruncate(fd, 0); } else { logger->notice(MSG_ALLOCATING_FILE, filename.c_str(), |
