From 657a40935e73bcb8a71e98b5716d31dd30aa458b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 18 Aug 2007 10:08:47 +0000 Subject: 2007-08-18 Tatsuhiro Tsujikawa 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 --- src/DefaultDiskWriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/DefaultDiskWriter.cc') 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(), -- cgit