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
This commit is contained in:
Tatsuhiro Tsujikawa 2007-08-18 10:08:47 +00:00
parent 3cc1ed5e09
commit 657a40935e
7 changed files with 1569 additions and 4 deletions

View File

@ -1,3 +1,20 @@
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
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
gcc 3.4.4 support:

View File

@ -1 +1 @@
ja de ru
ja de ru fr

BIN
po/fr.gmo Normal file

Binary file not shown.

1548
po/fr.po Normal file

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ AbstractDiskWriter::~AbstractDiskWriter()
void AbstractDiskWriter::openFile(const string& filename, int64_t totalLength) {
File f(filename);
if(f.exists()) {
openExistingFile(filename);
openExistingFile(filename, totalLength);
} else {
initAndOpenFile(filename, totalLength);
}

View File

@ -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(),

View File

@ -91,7 +91,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
handlers.push_back(new DefaultOptionHandler(PREF_USER_AGENT));
handlers.push_back(new BooleanOptionHandler(PREF_NO_NETRC));
handlers.push_back(new DefaultOptionHandler(PREF_INPUT_FILE));
handlers.push_back(new NumberOptionHandler(PREF_MAX_CONCURRENT_DOWNLOADS, 1, 15));
handlers.push_back(new NumberOptionHandler(PREF_MAX_CONCURRENT_DOWNLOADS, 1, 45));
handlers.push_back(new DefaultOptionHandler(PREF_LOAD_COOKIES));
handlers.push_back(new DefaultOptionHandler(PREF_PEER_ID_PREFIX));